legacy

package
v1.4.5-rc Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Legacy

type Legacy struct {
}

Legacy is an old encoder type used by Prysm before they moved to SSZ completely. Older versions of KeyVault use this encoding.

func New

func New() *Legacy

New returns new Legacy struct

func (*Legacy) Decode

func (l *Legacy) Decode(data []byte, v interface{}) error

Decode takes an old legacy encoding and populates a old/ new prysm object

func (*Legacy) Encode

func (l *Legacy) Encode(obj interface{}) ([]byte, error)

Encode takes a new/ old prysm object, encodes it to the legacy encoding

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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