Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ed25519 ¶
type Ed25519 struct{}
Ed25519 is the ed25519 crypto algorithm
func (*Ed25519) GenSeckey ¶
GenSeckey will generate the secret key by ed25519
func (*Ed25519) GetPubkey ¶
GetPubkey will get the public key of the secret key by ed25519
func (*Ed25519) Sign ¶
Sign will signature the message with seckey by ed25519
type Secp256k1 ¶
type Secp256k1 struct{}
Secp256k1 is the secp256k1 crypto algorithm
func (*Secp256k1) GenSeckey ¶
GenSeckey will generate the secret key by secp256k1
func (*Secp256k1) GetPubkey ¶
GetPubkey will get the public key of the secret key by secp256k1
func (*Secp256k1) Sign ¶
Sign will signature the message with seckey by secp256k1
Source Files
¶
- ed25519.go
- secp256k1.go
Click to show internal directories.
Click to hide internal directories.