disclosure

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String(s string) *string

Types

type Disclosure

type Disclosure struct {
	Salt         string
	Key          *string
	Value        any
	EncodedValue string
}

Disclosure this object represents a single disclosure in a SD-JWT. Salt the base64url encoded cryptographically secure string used during generation Key the key of the disclosed value. Only present for disclosed object values and not set when for an array element Value the value being disclosed EncodedValue the resulting base64url encoded disclosure array

func NewFromArrayElement

func NewFromArrayElement(element any, salt *string) (*Disclosure, error)

func NewFromDisclosure

func NewFromDisclosure(disclosure string) (*Disclosure, error)

func NewFromObject

func NewFromObject(key string, value any, salt *string) (*Disclosure, error)

func (*Disclosure) Hash

func (d *Disclosure) Hash(hash hash.Hash) []byte

Jump to

Keyboard shortcuts

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