Documentation ¶
Index ¶
- func PublicKeyToUncompressedBytes(pub *ecdsa.PublicKey) []byte
- func UncompressedBytesToPublicKey(b []byte) (*ecdsa.PublicKey, error)
- func ValidateSECP256R1Signature(hexMessage string, hexSignature string, hexPublicKey string) (bool, error)
- func ValidateSignature(hexMessage string, hexSignature string, hexPublicKey string) (bool, error)
- type ECDSASignature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublicKeyToUncompressedBytes ¶ added in v0.1.0
func UncompressedBytesToPublicKey ¶ added in v0.1.0
func ValidateSECP256R1Signature ¶ added in v0.1.0
func ValidateSECP256R1Signature(hexMessage string, hexSignature string, hexPublicKey string) (bool, error)
ValidateSECP256R1Signature takes the hex-encoded message together with r, s of the signature (combined as []byte{r.Bytes()..., s.Bytes()...}) and x, y (combined as []byte{0x04, x.Bytes()..., y.Bytes()...}) of the public key
Types ¶
type ECDSASignature ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.