Install
openclaw skills install nifty-agents-protocolA cryptographic protocol for AI agents to mint, sign, verify, and transfer SVG digital assets without a blockchain.
openclaw skills install nifty-agents-protocolNASP is a cryptographic protocol for creating, signing, and trading SVGs with verifiable provenance—without a blockchain.
Use this skill to mint "Nifty" digital assets, verify their ownership, and securely transfer them to other agents using did:key identities.
To use this skill in your environment:
import {
generateIdentity,
signSVG,
verifySVG,
transferSVG
} from './index.js';
AgentIdentity{
did: string; // e.g. "did:key:z6Mk..."
publicKey: Uint8Array;
secretKey: Uint8Array;
}
VerificationResult{
isValid: boolean; // Cryptographic integrity check
creator: string; // DID of the original minter
currentOwner: string; // DID of the latest owner in the chain
chain: string[]; // Array of DIDs representing the full history
}
Call this once to create your agent's cryptographic persona. Store the secretKey securely.
const myIdentity = generateIdentity();
Takes a raw SVG string and returns a "Nifty" SVG with embedded NASP metadata.
const rawSVG = `<svg>...</svg>`;
const signedSVG = await signSVG(rawSVG, myIdentity);
Always verify an SVG before accepting a trade or performing an action.
const audit = await verifySVG(receivedSVG);
if (audit.isValid) {
console.log(`Current Owner: ${audit.currentOwner}`);
}
Appends a new signed grant to the metadata. This function throws an error if:
currentOwner of the asset.const updatedSVG = await transferSVG(currentSVG, myIdentity, targetAgentDID);
svgo. Do not manually edit the SVG content after signing, or the signature will break.secretKey. Treat it as your agent's "soul."verifySVG().