This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alice = sym.Account.createFromPrivateKey("896E43895B908AF5847ECCB2645543751D94BD87E71058B003417FED512*****",networkType); | |
supplyMutable = false; //供給量変更の可否 | |
transferable = false; //第三者への譲渡可否 | |
restrictable = true; //制限設定の可否 | |
revokable = true; //発行者からの還収可否 | |
//モザイク定義 | |
nonce = sym.MosaicNonce.createRandom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://d3rmzi6ltfh1jy.cloudfront.net | |
(script = document.createElement('script')).src = 'https://xembook.github.io/nem2-browserify/symbol-sdk-pack-0.22.2.js'; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
NODE = 'https://d3rmzi6ltfh1jy.cloudfront.net' | |
GENERATION_HASH = '6C1B92391CCB41C96478471C2634C111D9E989DECD66130C0430B5B8D20117CD'; | |
nem = require("/node_modules/symbol-sdk"); | |
sha3_256 = require('/node_modules/js-sha3').sha3_256; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> bufferutil@3.0.5 install /home/ec2-user/node_modules/bufferutil | |
> prebuild-install || node-gyp rebuild | |
prebuild-install WARN install No prebuilt binaries found (target=12.16.2 runtime=node arch=x64 platform=linux) | |
make: Entering directory `/home/ec2-user/node_modules/bufferutil/build' | |
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o | |
In file included from ../node_modules/nan/nan_converters.h:67:0, | |
from ../node_modules/nan/nan.h:202, | |
from ../src/bufferutil.cc:7: | |
../node_modules/nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function verifyBlock(data){ | |
const block = JSON.parse(data); | |
signer = block.signer; | |
signature = block.signature; | |
v = cat.GeneratorUtils.uintToBuffer(block.version, 1) //version:8 | |
n = cat.GeneratorUtils.uintToBuffer(block.networkType, 1) //network:8 | |
t = cat.GeneratorUtils.uintToBuffer(block.type, 2) //type:16 |