utils

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveUndefinedProperties

func RemoveUndefinedProperties(obj map[string]interface{})

Types

type Convert

type Convert struct {
	// contains filtered or unexported fields
}

func ArrayBuffer

func ArrayBuffer(data []byte) *Convert

func Base58Btc

func Base58Btc(data string) *Convert

func Base64Url

func Base64Url(data string) *Convert

func BufferSource

func BufferSource(data []byte) *Convert

func Hex

func Hex(data string) *Convert

func Multibase

func Multibase(data string) *Convert

func NewConvert

func NewConvert(data interface{}, format string) *Convert

func Object

func Object(data map[string]interface{}) *Convert

func String

func String(data string) *Convert

func Uint8Array

func Uint8Array(data []byte) *Convert

func (*Convert) ToArrayBuffer

func (c *Convert) ToArrayBuffer() []byte

func (*Convert) ToBase58Btc

func (c *Convert) ToBase58Btc() string

func (*Convert) ToBase64Url

func (c *Convert) ToBase64Url() string

func (*Convert) ToHex

func (c *Convert) ToHex() string

func (*Convert) ToMultibase

func (c *Convert) ToMultibase() string

func (*Convert) ToObject

func (c *Convert) ToObject() map[string]interface{}

func (*Convert) ToString

func (c *Convert) ToString() string

func (*Convert) ToUint8Array

func (c *Convert) ToUint8Array() []byte

type GenericMessage

type GenericMessage struct {
	Descriptor struct {
		Interface        string `json:"interface"`
		Method           string `json:"method"`
		MessageTimestamp string `json:"messageTimestamp"`
	} `json:"descriptor"`
	Authorization struct {
		Signer    string `json:"signer"`
		Signature string `json:"signature"`
	} `json:"authorization"`
}

type GenericSignaturePayload

type GenericSignaturePayload struct {
	DescriptorCid      string `json:"descriptorCid"`
	DelegatedGrantId   string `json:"delegatedGrantId,omitempty"`
	PermissionsGrantId string `json:"permissionsGrantId,omitempty"`
	ProtocolRole       string `json:"protocolRole,omitempty"`
}

Jump to

Keyboard shortcuts

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