ipns

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckIsIPNSRecord

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

func IsIPNSRecord

func IsIPNSRecord(keyId string) *CheckIsIPNSRecord

func (*CheckIsIPNSRecord) Check

func (c *CheckIsIPNSRecord) Check(recordPayload []byte) check.CheckOutput

func (*CheckIsIPNSRecord) IsInvalid

func (c *CheckIsIPNSRecord) IsInvalid() *CheckIsIPNSRecord

func (*CheckIsIPNSRecord) IsValid

func (c *CheckIsIPNSRecord) IsValid() *CheckIsIPNSRecord

func (*CheckIsIPNSRecord) PointsTo

func (c *CheckIsIPNSRecord) PointsTo(value string, rest ...any) *CheckIsIPNSRecord

type IpnsRecord

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

func MustOpenIPNSRecordWithKey

func MustOpenIPNSRecordWithKey(file string) *IpnsRecord

func OpenIPNSRecordWithKey

func OpenIPNSRecordWithKey(absPath string) (*IpnsRecord, error)

func UnmarshalIpnsRecord

func UnmarshalIpnsRecord(data []byte, pubKey string) (*IpnsRecord, error)

func (*IpnsRecord) B58MH

func (i *IpnsRecord) B58MH() string

func (*IpnsRecord) IdV0

func (i *IpnsRecord) IdV0() string

func (*IpnsRecord) IdV1

func (i *IpnsRecord) IdV1() string

func (*IpnsRecord) Key

func (i *IpnsRecord) Key() string

func (*IpnsRecord) ToCID

func (i *IpnsRecord) ToCID(codec multicodec.Code, base mbase.Encoding) string

func (*IpnsRecord) Valid

func (i *IpnsRecord) Valid() error

func (*IpnsRecord) Validity

func (i *IpnsRecord) Validity() time.Time

func (*IpnsRecord) Value

func (i *IpnsRecord) Value() string

Jump to

Keyboard shortcuts

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