protocol

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package protocol implements DIDComm v2.1 protocols.

This package provides implementations of standard DIDComm protocols:

  • Trust Ping: Test connectivity and responsiveness
  • Out-of-Band: Exchange out-of-band invitations
  • Discover Features: Query supported protocols and features

Usage

Protocols can be used directly or through the Agent:

// Create a trust ping request
pingMsg := trustping.NewPing(
	"did:example:alice",
	"did:example:bob",
	trustping.WithResponseRequested(true),
)

// Process a received ping
response, err := trustping.HandlePing(receivedMsg)

Supported Protocols

https://didcomm.org/trust-ping/2.0        - Connectivity testing
https://didcomm.org/out-of-band/2.0       - Out-of-band invitations
https://didcomm.org/discover-features/2.0 - Feature discovery

Directories

Path Synopsis
Package discoverfeatures implements the DIDComm Discover Features Protocol 2.0.
Package discoverfeatures implements the DIDComm Discover Features Protocol 2.0.
Package issuecredential implements the DIDComm Issue Credential protocol 3.0.
Package issuecredential implements the DIDComm Issue Credential protocol 3.0.
Package oob implements the DIDComm Out-of-Band Protocol 2.0.
Package oob implements the DIDComm Out-of-Band Protocol 2.0.
Package pickup implements the DIDComm Pickup Protocol 2.0.
Package pickup implements the DIDComm Pickup Protocol 2.0.
Package presentproof implements the DIDComm present-proof protocol 3.0.
Package presentproof implements the DIDComm present-proof protocol 3.0.
Package trustping implements the DIDComm Trust Ping Protocol 2.0.
Package trustping implements the DIDComm Trust Ping Protocol 2.0.

Jump to

Keyboard shortcuts

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