Documentation ¶
Index ¶
Constants ¶
View Source
const ( CurveEd25519 string = "ed25519" CurveSecp256K1 string = "secp256k1" MaxMsgLen = 32 )
Constants shared within subfolders
Variables ¶
This section is empty.
Functions ¶
func GenerateSigningKeyPair ¶
func GenerateSigningKeyPair(publicFileName, privateFileName, curveType string)
GenerateSigningKeyPair generates based on the curveType and writes keys to file paths given.
func SignMessage ¶
SignMessage signs the message using the private key as the curveType provided. if ethereumSign is true, then the signature format is specific to ethereum.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.