Documentation ¶
Overview ¶
Package fcrcrypto - location for cryptographic tools to perform common operations on hashes, keys and signatures
Index ¶
- func GenerateRetrievalKeyPair() (string, string, string, error)
- func GetPublicKey(privKeyStr string) (string, string, error)
- func GetWalletAddress(pubKeyStr string) (string, error)
- func Sign(privKeyStr string, ver byte, data []byte) (string, error)
- func Verify(pubKeyStr string, ver byte, sigStr string, data []byte) error
- func VerifyByID(id string, sigStr string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRetrievalKeyPair ¶
GenerateRetrievalKeyPair generates a new key, returns the private key, its associated public key, node id and error.
func GetPublicKey ¶
GetPublicKey gets the public key, node id and error of giving private key
func GetWalletAddress ¶
GetWalletAddress gets the wallet address from a public key.
func Sign ¶
Sign signs given bytes using given private key and given version, returns the signature in bytes and error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.