From: Miro Metsänheimo Date: Fri, 18 Oct 2019 19:49:52 +0000 (+0300) Subject: update readme X-Git-Tag: v0.0.1~34 X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=06e7cf38dbe5f1c0f12365338a4015b68add43a6;p=libnemo.git update readme --- diff --git a/README.md b/README.md index 9d072d0..084a62b 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ const data = { } // Returns a correctly formatted and signed block ready to be sent to the blockchain -const signedBlock = block.sign(data, privateKey) +const signedBlock = block.receive(data, privateKey) ``` Signing a send block @@ -125,7 +125,7 @@ const data = { } // Returns a correctly formatted and signed block ready to be sent to the blockchain -const signedBlock = block.sign(data, privateKey) +const signedBlock = block.send(data, privateKey) ``` Signing a change representative block @@ -151,7 +151,7 @@ const data = { } // Returns a correctly formatted and signed block ready to be sent to the blockchain -const signedBlock = block.sign(data, privateKey) +const signedBlock = block.representative(data, privateKey) ``` Converting units