Categorygithub.com/MetaBloxIO/did-sdk-go/v2
modulepackage
2.1.1
Repository: https://github.com/metabloxio/did-sdk-go.git
Documentation: pkg.go.dev

# README

did-sdk-go

Introduction

Provides general purpose operations for MetaBlox according to W3C spec.

Installation and usage

The import path for the package is gopkg.in/yaml.v3.

To install it, run:

go get github.com/metablox/did-sdk-go

API documentation

API stability

License

The did-sdk-go package is licensed under the MIT license. Please see the LICENSE file for details.

Example

package main

import (
	"fmt"
)

func main() {
	fmt.Println("did-sdk-go,hello world!")
}

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Function to compare two Ethereum addresses by checking the identifiers and chainIDs.
convert document into byte array so it can be hashed (appears to be unused currently).
convert service to byte array.
convert issuance and expiration times of credential from db format to RFC3339.
convert issuance and expiration times of credential from RFC3339 to db format.
convert credential to bytes so it can be hashed.
No description provided by the author
convert VM to byte array.
convert presentation to bytes so it can be hashed.
No description provided by the author
TODO: check that this function can be safely removed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
use a private key and a message to create a JWS format signature.
No description provided by the author
create a presentation using 1 or more credentials.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Base function for creating VCs.
No description provided by the author
No description provided by the author
create a credential proof using the provided verification method string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: check that this function can be safely removed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
check format of DID string.
TODO: check that this function can be safely removed.
convert JSON formatted credential to object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
splits did and checks that it is formatted correctly.
No description provided by the author
generate the did document that matches the provided did string.
generate a did document and return it in a specific data format (currently just JSON).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
split did string into 3 sections.
convert credential to a JSON format.
No description provided by the author
No description provided by the author
No description provided by the author
Function to verify an Ethereum EIP-712 signature.
No description provided by the author
No description provided by the author
verify a JWS format signature using the matching public key and the original message.
Verify that the provided public key matches the signature in the proof.
Verify that the provided public key matches the signature in the proof.
Need to make sure that the stated issuer of the VC actually created it (using the proof alongside the issuer's verification methods), as well as check that the issuer is a trusted source.
Verify a presentation.

# Constants

No description provided by the author
All credential ids use a format of this value plus a number.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This can be a type of input form to set up the VC.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author