![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
cc-assetid-encoder
Advanced tools
Readme
Issuance-Encoder provides the encode/decode functions between a Colored Coins issuance Object to buffer
$ npm install cc-assetid-encoder
Params: - BitcoinTransaction - An Object with contains at least the following properties:
{
'ccdata': [{
'type': 'issuance',
'lockStatus': false,
}],
'vin': [{
'txid': '0f45f38a8bcd8331877267e0f3f5f8a4b3c716165e40db4eee34d52759ad954f',
'vout': 2,
// The following properties are optional but at least one is required in
// case 'lockStatus' is FALSE
'scriptSig': {
'asm': '3045022100daf8f8d65ea908a28d90f700dc932ecb3b68f402b04ba92f987e8abd7080fcad02205ce81b698b8013b86813c9edafc9e79997610626c9dd1bfb49f60abee9daa43801 029b622e5f0f87f2be9f23c4d82f818a73e258a11c26f01f73c8b595042507a574',
}
'address': 'mxNTyQ3WdFMQE7SGVpSQGXnSDevGMLq7dg'
}]
}
Returns a new Buffer holding the encoded issuance.
var assetIdEncoder = require('cc-assetid-encoder')
var bitcoinTransaction = {
'ccdata': [{
'type': 'issuance',
'lockStatus': false,
}],
'vin': [{
'txid': '0f45f38a8bcd8331877267e0f3f5f8a4b3c716165e40db4eee34d52759ad954f',
'vout': 2,
'scriptSig': {
'asm': '3045022100daf8f8d65ea908a28d90f700dc932ecb3b68f402b04ba92f987e8abd7080fcad02205ce81b698b8013b86813c9edafc9e79997610626c9dd1bfb49f60abee9daa43801 029b622e5f0f87f2be9f23c4d82f818a73e258a11c26f01f73c8b595042507a574',
}
}]
}
assetIdEncoder(bitcoinTransaction)
// Will print 'Ua3Kt8WJtsx61VC8DUJiRmseQ45NfW2dwLbG6s'
In order to test you need to install mocha globaly on your machine
$ cd /"module-path"/cc-assetid-Encoder
$ mocha
FAQs
Creates an Asset Id for Issuance transaction
The npm package cc-assetid-encoder receives a total of 0 weekly downloads. As such, cc-assetid-encoder popularity was classified as not popular.
We found that cc-assetid-encoder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.