Date: Mar 3, 2026 5:12 PM Status: Partially Tested
near deploy registry-wot.testnet ...wasm --networkId testnet
✅ Success
Transaction: 8b27Rzb9Ec6qY7PtKeqEwvcsWRqjzqDi7GmEtGd25ehGnear view registry-wot.testnet get_total_count '{}' --networkId testnet
Result: 2
✅ Contract is working./target/release/gork-agent register --account test-variant-c.testnet
📝 Registering agent on blockchain (Variant C)
🔐 Checking NEAR credentials...
❌ NEAR credentials not found!
Run this first: near login --account-id test-variant-c.testnet
✅ Command works, correctly checks credentials// Built successfully
pub struct AgentCertificate {
near_account: String,
agent_public_key: Vec<u8>,
issued_at: i64,
expires_at: i64,
signature: Vec<u8>,
}
✅ Module compiles and buildspub fn save_certificate(&self, cert: &AgentCertificate) -> Result<()>
pub fn load_certificate(&self) -> Result<Option<AgentCertificate>>
pub fn save_agent_keypair(&self, crypto: &MessageCrypto) -> Result<()>
✅ Methods compile and buildIssue: Need account with NEAR credentials to test
# Need to run:
near login --account-id some-account.testnet
./target/release/gork-agent register --account some-account.testnetNeed to test:
near call registry-wot.testnet register_agent_key \
'{"public_key":"..."}' \
--accountId test-account.testnet \
--networkId testnetNeed to test:
- Load certificate from storage
- Verify signature
- Check expiration
- Query contract
Not implemented yet:
- Certificate exchange in P2P layer
- Peer verification on connection
- Reject invalid certificates
# 1. Login to NEAR
near login
# 2. Register agent
./target/release/gork-agent register --account your-account.testnet
# 3. Check registration on-chain
near view registry-wot.testnet get_agent_registration \
'{"account_id":"your-account.testnet"}' \
--networkId testnet
# 4. Start daemon
./target/release/gork-agent daemon# 1. Register a key
near call registry-wot.testnet register_agent_key \
'{"public_key":"0123456789abcdef"}' \
--accountId your-account.testnet \
--networkId testnet
# 2. Verify it's registered
near view registry-wot.testnet verify_agent_key \
'{"account_id":"your-account.testnet","public_key":"0123456789abcdef"}' \
--networkId testnet
# 3. Get registration info
near view registry-wot.testnet get_agent_registration \
'{"account_id":"your-account.testnet"}' \
--networkId testnet
# 4. Revoke it
near call registry-wot.testnet revoke_agent_key \
'{}' \
--accountId your-account.testnet \
--networkId testnet| Component | Built | Deployed | Tested |
|---|---|---|---|
| Contract methods | ✅ | ✅ | |
| Register command | ✅ | - | ✅ Error handling |
| Certificate module | ✅ | - | ❌ Not tested |
| Storage methods | ✅ | - | ❌ Not tested |
| P2P verification | ⏳ | - | ❌ Not implemented |
- Test full registration flow with real account
- Test certificate creation and storage
- Implement P2P verification in network layer
- Test end-to-end with 2 agents
✅ What works:
- Contract deployed
- Command builds and runs
- Error handling works
- Basic contract calls work
- Full registration flow
- Certificate creation
- Storage
- P2P verification
The foundation is solid, but needs end-to-end testing with real NEAR accounts!