Usage

The Notary SDK streamline the process of calling Notary APIs. Import

import "github.com/vulpemventures/notary-go-sdk/notary"

Instance Create new instance of the notrary SDK with the New function passing the mandatory API_KEY and ENVIRONMENT (one of staging,production)

sdk := &notary.Notary{} 
sdk.New("MY_APY_KEY","staging")

Stamp Here's a simple example how to create a timestamp of arbitrary data


response, err = sdk.Stamp(ctx, sdk.message.FromString("My Random Data"))
if err != nil {
        log.Fatalf("could not stamp: %v", err)
}
log.Printf("Hooray!: %s", response.TopicId)

Last updated

Was this helpful?