encoding

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeECDSAPubKey

func DecodeECDSAPubKey(encodedKey []byte) (*ecdsa.PublicKey, error)

func DecodeEDDSAPubKey

func DecodeEDDSAPubKey(encodedKey []byte) (ed25519.PublicKey, error)

DecodeEDDSAPubKey parses 32 raw bytes into a standard crypto/ed25519.PublicKey.

func EncodeEDDSAPubKey

func EncodeEDDSAPubKey(pubKey ed25519.PublicKey) ([]byte, error)

EncodeEDDSAPubKey returns the raw 32-byte Ed25519 public key.

func EncodeS256Point

func EncodeS256Point(p curves.Point) ([]byte, error)

EncodeS256Point encodes a kryptology secp256k1 curves.Point as 64 raw bytes (X‖Y).

func EncodeS256PubKey

func EncodeS256PubKey(pubKey *ecdsa.PublicKey) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL