Documentation ¶
Index ¶
Constants ¶
View Source
const MessageLength = 32
MessageLength is the fixed Message Length
View Source
const PrivateKeyLength = 32
PrivateKeyLength is the fixed Private Key Length
View Source
const SignatureLength = 64
SignatureLength is the fixed Signature Length
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keypair ¶
type Keypair struct {
// contains filtered or unexported fields
}
Keypair holds the pub,pk keys
func GenerateKeypair ¶
GenerateKeypair will generate a Keypair
func NewKeypair ¶
func NewKeypair(pk ecdsa.PrivateKey) *Keypair
NewKeypair will returned a Keypair from a PrivateKey
func NewKeypairFromPrivate ¶
func NewKeypairFromPrivate(priv *PrivateKey) (*Keypair, error)
NewKeypairFromPrivate will return a Keypair for a PrivateKey
func NewKeypairFromPrivateKeyString ¶ added in v0.2.0
NewKeypairFromPrivateKeyString returns a Keypair given a 0x prefixed private key string
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
PrivateKey struct for PrivateKey
func NewPrivateKey ¶
func NewPrivateKey(in []byte) (*PrivateKey, error)
NewPrivateKey will return a PrivateKey for a []byte
Click to show internal directories.
Click to hide internal directories.