Documentation ¶
Index ¶
- Constants
- func FromAddress(value any, v, r, s *big.Int) (string, error)
- func Hash(value any) string
- func Sign(value any, privateKey *ecdsa.PrivateKey) (v, r, s *big.Int, err error)
- func String(v, r, s *big.Int) string
- func ToSignatureBytes(v, r, s *big.Int) []byte
- func ToSignatureBytesWithSophiaID(v, r, s *big.Int) []byte
- func VerifySignature(value any, v, r, s *big.Int) error
Constants ¶
View Source
const ZeroHash string = "0x0000000000000000000000000000000000000000000000000000000000000000"
ZeroHash represents a hash code of zeros.
Variables ¶
This section is empty.
Functions ¶
func FromAddress ¶
FromAddress extracts the address for the account that signed the transaction.
func ToSignatureBytes ¶
ToSignatureBytes converts the r, s, v values into a slice of bytes with the removal of the sophiaID.
func ToSignatureBytesWithSophiaID ¶
ToSignatureBytesWithSophiaID converts the r, s, v values into a slice of bytes keeping the Sophia id.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.