Documentation ¶
Index ¶
- Constants
- func CurveById(typeId uint16) (elliptic.Curve, error)
- func Decrypt(private *Key, payload []byte) ([]byte, error)
- func Encrypt(public *ecdsa.PublicKey, payload []byte) ([]byte, error)
- func MarshalPrivate(w io.Writer, private *Key) error
- func PasswordDecrypt(encrypted io.Reader, key []byte) []byte
- func PasswordEncrypt(w io.Writer, data []byte, key []byte) error
- func PublicFromSerialized(public *Public, typeID uint16, x []byte, y []byte) error
- func Sect283k1() elliptic.Curve
- func UnmarshalPublic(c elliptic.Curve, data []byte) *ecdsa.PublicKey
- type Key
- type PrivateSerialized
- type Public
- func (p *Public) Checksum() uint32
- func (p *Public) Convert() *ecdsa.PublicKey
- func (p *Public) Copy() Public
- func (this *Public) Deserialize(r io.Reader) error
- func (this *Public) Equal(other *Public) bool
- func (this *Public) Serialize(w io.Writer) error
- func (this *Public) Serialized() PublicSerialized
- func (this *Public) SerializedPlain() PublicSerializedPlain
- func (p *Public) ToBase58() string
- type PublicPrefixChecksum
- type PublicSerialized
- type PublicSerializedPlain
- type Signature
- type SignatureSerialized
Constants ¶
View Source
const ( NIDsecp256k1 uint16 = 714 NIDsecp521r1 = 716 NIDsect283k1 = 729 NIDsecp384r1 = 715 )
Variables ¶
This section is empty.
Functions ¶
func PublicFromSerialized ¶
Types ¶
type Key ¶
func NewKeyByType ¶
func (*Key) Convert ¶
func (k *Key) Convert() *ecdsa.PrivateKey
type PrivateSerialized ¶
type Public ¶
type Public struct { TypeId uint16 ecdsa.PublicKey utils.Serializable }
func PublicFromBase58 ¶
func (*Public) Serialized ¶
func (this *Public) Serialized() PublicSerialized
func (*Public) SerializedPlain ¶
func (this *Public) SerializedPlain() PublicSerializedPlain
type PublicPrefixChecksum ¶
type PublicPrefixChecksum struct { Prefix uint8 Public PublicSerialized Checksum uint32 }
type PublicSerialized ¶
type PublicSerializedPlain ¶
type PublicSerializedPlain struct { TypeId uint16 X utils.Serializable Y utils.Serializable }
type SignatureSerialized ¶
func (*SignatureSerialized) Decompress ¶
func (this *SignatureSerialized) Decompress() *Signature
Click to show internal directories.
Click to hide internal directories.