Documentation ¶
Index ¶
Constants ¶
View Source
const (
PublicKeyLength = 32
)
Variables ¶
This section is empty.
Functions ¶
func PublicKeyIsOnCurve ¶
func ValidateNineoraID ¶
Types ¶
type Key ¶
type Key struct { Private PrivateKey `bson:"private" json:"private"` Public PublicKey `bson:"public" json:"public"` // contains filtered or unexported fields }
type PrivateKey ¶
type PrivateKey []byte
func PrivateKeyFromBase58 ¶
func PrivateKeyFromBase58(pri string) (PrivateKey, *errors.Error)
func (PrivateKey) PublicKey ¶
func (k PrivateKey) PublicKey() PublicKey
func (PrivateKey) ToBase58 ¶
func (k PrivateKey) ToBase58() string
func (PrivateKey) Validate ¶
func (k PrivateKey) Validate() *errors.Error
type PublicKey ¶
type PublicKey [PublicKeyLength]byte
type Signature ¶
type Signature [64]byte
func (*Signature) HexEncode ¶
func (s *Signature) HexEncode() SignatureBase58
type SignatureBase58 ¶
type SignatureBase58 string
type Signer ¶
type Signer struct {
PrivateKey PrivateKey `bson:"private_key" json:"private_key"`
}
type Wallet ¶
type Wallet struct {
PrivateKey PrivateKey `bson:"private_key" json:"private_key"`
}
Click to show internal directories.
Click to hide internal directories.