Sub-clients — Go SDK¶
Each sub-client wraps one domain of the NA HTTP API. Admin methods require
SigningKey + KeyID to be set on the client. Public methods work without credentials.
client.Agreement¶
Wraps the Agreement domain (/admin/agreements/*, /agreements/verify).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Create and sign a capability offer |
|
yes |
Create and sign a counter-offer |
|
yes |
Accept an offer or counter → |
|
no |
Verify agreement signatures |
Constraint: Accept requires the NA to hold an active recognition treaty
for the responder_sovereign_id. Issue it first via POST /admin/recognition-treaties
(see Auth, Errors & Types — Go SDK).
client.Boundary¶
Wraps the Boundary domain (/admin/boundary/decide, /boundary/verify).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Issue a boundary decision → |
|
no |
Verify a boundary decision |
client.Evidence¶
Wraps the Evidence domain (/admin/evidence/build).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Build signed trust evidence → |
Constraint: TrustDecision.Verdict must be one of "allow", "block",
"escalate", or "warn". The value "trusted" is invalid and the NA returns 422.
client.Attestation¶
Wraps the Attestation domain (/admin/attestations/*).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Issue a membership attestation |
|
yes |
Revoke an attestation by ID |
|
yes |
Set the recognition policy |
Constraint: Roles must use a recognized prefix: role:anchor,
role:bridge, role:client, role:operator, or role:service:<name>.
Bare names return 422.
client.Disclosure¶
Wraps Selective Disclosure (/admin/disclosure/*, /disclosure/*).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Commit to a capability set |
|
yes |
Issue a one-time nullifier for a proof |
|
no |
Generate a Merkle membership proof |
|
no |
Verify a disclosure proof |
client.Consensus¶
Wraps Consensus (/admin/consensus/*, /consensus/verify).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Cast a validator vote |
|
yes |
Assemble a consensus proof |
|
no |
Verify a consensus proof |
client.DataUsage¶
Wraps Data Usage (/admin/data-usage/*, /data-usage/*).
Method |
Admin |
Description |
|---|---|---|
|
yes |
Create a data license policy |
|
yes |
Create a data access intent |
|
no |
Get the current active policy |
|
no |
Verify intent against policy |
Constraint: Each DataSourceDescriptor must include source_id,
source_type, and owner_sovereign_id. Missing any field returns 422.
source_type must be one of "personal", "proprietary", "public", "synthetic".