anp.setAuth
Set up authentication for ANP agent communication by providing DID document and private key files, enabling secure document fetching and method invocation.
Instructions
设置 DID 认证上下文。使用本地 DID 文档和私钥文件建立认证,后续的 fetchDoc 和 invokeOpenRPC 调用将自动使用这些凭证。
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did_document_path | Yes | DID 文档 JSON 文件的路径 | |
| did_private_key_path | Yes | DID 私钥 PEM 文件的路径 |