Documentation ¶
Index ¶
- Constants
- type Addressable
- type Keypair
- func (kp *Keypair) CreateAddress(publicKey []byte) string
- func (kp *Keypair) CreateAddressable() *Addressable
- func (kp *Keypair) CreatePublicFromPrivate(private string) string
- func (kp *Keypair) GenerateKey() ([]byte, []byte)
- func (kp *Keypair) SetPrivateKey(privateKey []byte)
- func (kp *Keypair) Sign(message []byte) ([]byte, error)
Constants ¶
View Source
const ( NISTP256Version = iota Ed25519Version WIFVersion = 0x80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addressable ¶
type Addressable struct {
// contains filtered or unexported fields
}
func NewAddressable ¶
func NewAddressable(address string) *Addressable
func (*Addressable) GetAddress ¶
func (aa *Addressable) GetAddress() string
func (*Addressable) GetBin ¶
func (aa *Addressable) GetBin() []byte
func (*Addressable) GetPublicKey ¶
func (aa *Addressable) GetPublicKey() []byte
type Keypair ¶
type Keypair struct {
// contains filtered or unexported fields
}
func NewKeypairFromHex ¶
func (*Keypair) CreateAddress ¶
CreateAddress first byte 0, second byte is network | keyType, next is public key and then base64 for all
func (*Keypair) CreateAddressable ¶
func (kp *Keypair) CreateAddressable() *Addressable
func (*Keypair) CreatePublicFromPrivate ¶
func (*Keypair) GenerateKey ¶
func (*Keypair) SetPrivateKey ¶
Click to show internal directories.
Click to hide internal directories.