Categorygithub.com/mit-dci/dlc-oracle-go
modulepackage
0.0.0-20180605100312-9e7324eea84a
Repository: https://github.com/mit-dci/dlc-oracle-go.git
Documentation: pkg.go.dev

# README

Discreet Log Contracts Oracle library (Go)

This library allows you to easily build oracles for use in Discreet Log Contracts using Go.

For a step-by-step instruction on how to build an oracle using this library, please see TUTORIAL.md

See the examples repository for more examples using this library. Feel free to contribute any examples you created by submitting a pull request to the samples repository.

# Packages

No description provided by the author

# Functions

ComputeSignature Computes the signature for an arbitrary message based on two private scalars: The one-time signing key and the oracle's private key.
ComputeSignaturePubKey calculates the signature multipled by the generator point, for an arbitrary message based on pubkey R and pubkey A.
GenerateNumericMessage returns a zero-padded message for numeric values, LIT expects numeric oracle values to be 256-bit.
GenerateOneTimeSigningKey will return a new random private scalar to be used when signing a new message.
LoadKeyFromFileArg opens the file and returns the key.
LoadKeyFromFileInteractive opens the file 'filename' and presents a keyboard prompt for the passphrase to decrypt it.
PublicKeyFromPrivateKey derives the public key to a private key.
ReadKeyFile returns an 32 byte key from a file.
saves a 96 byte key (three points) to a file, encrypting with pass.
saves a 32 byte key to file, prompting for passphrase.