keys

package
v0.0.0-...-f291c22 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package keys provides tools for resolving the w3c did:key format, for static cryptographic keys: https://w3c-ccg.github.io/did-method-key/#format Copyright 2021 Textile Copyright 2021 Ceramic Network

Package keys provides tools for resolving the w3c did:key format, for static cryptographic keys: https://w3c-ccg.github.io/did-method-key/#format Copyright 2021 Textile Copyright 2021 Ceramic Network

Package keys provides tools for resolving the w3c did:key format, for static cryptographic keys: https://w3c-ccg.github.io/did-method-key/#format Copyright 2021 Textile Copyright 2021 Ceramic Network

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEd25519Key

func ExpandEd25519Key(bytes []byte, fingerprint string) (*resolver.Document, error)

ExpandEd25519Key creates a did Document from an input ed15519 public key.

func ExpandSecp256k1Key

func ExpandSecp256k1Key(bytes []byte, fingerprint string) (*resolver.Document, error)

ExpandSecp256k1Key creates a did Document from an input secp256k1 public key.

Types

type Resolver

type Resolver struct{}

Resolver defines a basic key resolver, conforming the to Resolver interface.

func New

func New() *Resolver

New creates and returns a new key Resolver.

func (*Resolver) Method

func (r *Resolver) Method() string

Method returns the method that this resolver is capable of resolving.

func (*Resolver) Resolve

func (r *Resolver) Resolve(did string, parsed *did.DID, res resolver.Resolver) (*resolver.Document, error)

Resolve is the primary resolution method for this resolver.

Jump to

Keyboard shortcuts

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