Documentation ¶
Index ¶
Constants ¶
View Source
const ( ECDSA_SECP256K1_PUBLIC_KEY_SIZE_BYTES = 64 ECDSA_SECP256K1_PRIVATE_KEY_SIZE_BYTES = 32 )
View Source
const ( ED25519_PUBLIC_KEY_SIZE_BYTES = 32 ED25519_PRIVATE_KEY_SIZE_BYTES = 64 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EcdsaSecp256K1KeyPair ¶ added in v0.7.1
type EcdsaSecp256K1KeyPair struct {
// contains filtered or unexported fields
}
func GenerateEcdsaSecp256K1Key ¶ added in v0.7.1
func GenerateEcdsaSecp256K1Key() (*EcdsaSecp256K1KeyPair, error)
func NewEcdsaSecp256K1KeyPair ¶ added in v0.7.1
func NewEcdsaSecp256K1KeyPair(publicKey primitives.EcdsaSecp256K1PublicKey, privateKey primitives.EcdsaSecp256K1PrivateKey) *EcdsaSecp256K1KeyPair
func (*EcdsaSecp256K1KeyPair) PrivateKey ¶ added in v0.7.1
func (k *EcdsaSecp256K1KeyPair) PrivateKey() primitives.EcdsaSecp256K1PrivateKey
func (*EcdsaSecp256K1KeyPair) PrivateKeyHex ¶ added in v0.7.1
func (k *EcdsaSecp256K1KeyPair) PrivateKeyHex() string
func (*EcdsaSecp256K1KeyPair) PublicKey ¶ added in v0.7.1
func (k *EcdsaSecp256K1KeyPair) PublicKey() primitives.EcdsaSecp256K1PublicKey
func (*EcdsaSecp256K1KeyPair) PublicKeyHex ¶ added in v0.7.1
func (k *EcdsaSecp256K1KeyPair) PublicKeyHex() string
type Ed25519KeyPair ¶
type Ed25519KeyPair struct {
// contains filtered or unexported fields
}
func GenerateEd25519Key ¶
func GenerateEd25519Key() (*Ed25519KeyPair, error)
func NewEd25519KeyPair ¶
func NewEd25519KeyPair(publicKey primitives.Ed25519PublicKey, privateKey primitives.Ed25519PrivateKey) *Ed25519KeyPair
func (*Ed25519KeyPair) PrivateKey ¶
func (k *Ed25519KeyPair) PrivateKey() primitives.Ed25519PrivateKey
func (*Ed25519KeyPair) PrivateKeyHex ¶
func (k *Ed25519KeyPair) PrivateKeyHex() string
func (*Ed25519KeyPair) PublicKey ¶
func (k *Ed25519KeyPair) PublicKey() primitives.Ed25519PublicKey
func (*Ed25519KeyPair) PublicKeyHex ¶
func (k *Ed25519KeyPair) PublicKeyHex() string
Click to show internal directories.
Click to hide internal directories.