Skip to content

Commit 271a125

Browse files
Merge pull request #4 from gavinharris-dev/feature/cip30
Check this out.
2 parents 8d3f6be + ed9b2a1 commit 271a125

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

dist/browser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web3-cardano-token",
3-
"version": "0.1.15",
3+
"version": "0.1.16",
44
"private": false,
55
"description": "Web3 Token is a new way to authenticate users in hybrid dApps using signed messages.",
66
"author": "pyropy",

src/lib/sign.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ export const sign = async (signer, expires_in = '1d', body = {}) => {
2626
throw new Error('"signer" argument should be a function that returns a signature eg: "msg => web3.eth.personal.sign(msg, <YOUR_ADDRESS>)"')
2727
}
2828

29-
if (typeof(signature) === "object") {
30-
signature = signature.signature
31-
}
32-
3329
const {signature, key} = COSESign1Message;
3430

3531
if(typeof signature !== 'string') {

0 commit comments

Comments
 (0)