Documentation ¶
Index ¶
- Constants
- func DeriveClassicAddress(pubkey string) (string, error)
- func DeriveKeypair(seed string, validator bool) (private, public string, err error)
- func GenerateSeed(entropy string, alg addresscodec.CryptoAlgorithm) (string, error)
- func Sign(msg, privKey string) (string, error)
- func Validate(msg, pubKey, sig string) (bool, error)
- type CryptoImplementation
- type CryptoImplementationError
- type InvalidSignatureError
Constants ¶
View Source
const (
VERIFICATIONMESSAGE = "This test message should verify."
)
Variables ¶
This section is empty.
Functions ¶
func DeriveClassicAddress ¶
func DeriveKeypair ¶
Derives a keypair from a given seed. Returns a tuple of private key and public key
func GenerateSeed ¶
func GenerateSeed(entropy string, alg addresscodec.CryptoAlgorithm) (string, error)
Types ¶
type CryptoImplementation ¶
type CryptoImplementation interface {
// contains filtered or unexported methods
}
type CryptoImplementationError ¶
type CryptoImplementationError struct{}
func (*CryptoImplementationError) Error ¶
func (e *CryptoImplementationError) Error() string
type InvalidSignatureError ¶
type InvalidSignatureError struct{}
func (*InvalidSignatureError) Error ¶
func (e *InvalidSignatureError) Error() string
Click to show internal directories.
Click to hide internal directories.