encoding

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEDDSAPubKey

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

func EncodeEDDSAPubKey

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

func EncodeS256PubKey

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

func JsonBytesToStruct

func JsonBytesToStruct(data []byte, v interface{}) error

JsonBytesToStruct converts JSON bytes to a struct

func StructToJsonBytes

func StructToJsonBytes(v interface{}) ([]byte, error)

StructToJsonBytes converts a struct to JSON bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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