
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@tokenized/tokenized
Advanced tools
Warning - This library is new and changing rapidly.
cd $GOPATH/src/github.com/tokenized/specification/dist/typescript
npm install
cd $GOPATH/src/github.com/tokenized/specification/dist/typescript
node node_modules/gulp/bin/gulp.js
cd $GOPATH/src/github.com/tokenized/specification/
go run cmd/tokenized/main.go generate
cd $GOPATH/src/github.com/tokenized/specification/dist/typescript
npm run test
cd $GOPATH/src/github.com/tokenized/specification/dist/typescript
npm run test
import {
ContractOffer, OpReturnMessage, Permission, Timestamp, Entity, PublicKeyHash
} from '@tokenized/tokenized';
let voteSystemsAllowed = [ true, true ];
let permission = new Permission();
permission.permitted = true;
permission.administration_proposal = true;
permission.holder_proposal = false;
permission.voting_systems_allowed = voteSystemsAllowed;
// Note: Permissions can be different for each field.
let permissions = [...Array(20)].map(_ => permission);
// Serialize auth flags
let authFlags = Permission.WriteAuthFlags(permissions);
// Generate a new contract offer action
let action = new ContractOffer();
action.contract_name = 'Test';
action.body_of_agreement_type = 2;
action.body_of_agreement = [...Buffer.from('<contract agreement>', 'ascii')];
action.contract_type = 'Test Type';
action.contract_auth_flags = authFlags;
action.supporting_docs = [];
action.contract_expiration = new Timestamp();
action.issuer = new Entity();
action.voting_systems = [];
action.oracles = [];
action.master_pkh = new PublicKeyHash();
// Specify any other fields necessary
// ...
// Serialize action
let isTest = true; // use "test.tokenized" OP_RETURN signature
let actionData = OpReturnMessage.Serialize(action, isTest);
// Convert to hex
console.log("Contract Offer Hex :\n", actionData);
// Output as human readable string
console.log("Contract Offer text :\n", JSON.stringify(action));
Open BSV
FAQs
Official Tokenized token protocol support for Bitcoin SV
We found that @tokenized/tokenized demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.