Secp256r1PublicKey
type Secp256r1PublicKey
A secp256r1 public key.
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text secp256r1-public-key = 33OCTET ```
type Secp256r1PublicKey struct {
// contains filtered or unexported fields
}
func LiftFromExternalSecp256r1PublicKey
func LiftFromExternalSecp256r1PublicKey(handle uint64) *Secp256r1PublicKey
func Secp256r1PublicKeyFromBcs
func Secp256r1PublicKeyFromBcs(bcs []byte) (*Secp256r1PublicKey, error)
Create this type from BCS encoded bytes.
func Secp256r1PublicKeyFromBytes
func Secp256r1PublicKeyFromBytes(bytes []byte) (*Secp256r1PublicKey, error)
func Secp256r1PublicKeyFromJson
func Secp256r1PublicKeyFromJson(json string) (*Secp256r1PublicKey, error)
Create this type from JSON encoded string.
func Secp256r1PublicKeyFromStr
func Secp256r1PublicKeyFromStr(s string) (*Secp256r1PublicKey, error)
func Secp256r1PublicKeyRandom
func Secp256r1PublicKeyRandom() *Secp256r1PublicKey
func (*Secp256r1PublicKey) DeriveAddress
func (_self *Secp256r1PublicKey) DeriveAddress() *Address
Derive an `Address` from this Public Key
An `Address` can be derived from a `Secp256r1PublicKey` by hashing the bytes of the public key prefixed with the Secp256r1 `SignatureScheme` flag (`0x02`).
`hash( 0x02 || 33-byte secp256r1 public key)`
func (*Secp256r1PublicKey) Destroy
func (object *Secp256r1PublicKey) Destroy()
func (*Secp256r1PublicKey) Eq
func (_self *Secp256r1PublicKey) Eq(other *Secp256r1PublicKey) bool
func (*Secp256r1PublicKey) Hash
func (_self *Secp256r1PublicKey) Hash() uint64
func (*Secp256r1PublicKey) Ne
func (_self *Secp256r1PublicKey) Ne(other *Secp256r1PublicKey) bool
func (*Secp256r1PublicKey) Scheme
func (_self *Secp256r1PublicKey) Scheme() SignatureScheme
Returns the signature scheme for this public key.
func (*Secp256r1PublicKey) ToBytes
func (_self *Secp256r1PublicKey) ToBytes() []byte
func (*Secp256r1PublicKey) ToFlaggedBytes
func (_self *Secp256r1PublicKey) ToFlaggedBytes() []byte
Returns the bytes with signature scheme flag prepended