Skip to content

Commit

Permalink
Add algorand authentication (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCode2012 authored Dec 15, 2023
1 parent 8a721a9 commit eabe3ab
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 18 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"posttest": "yarn run lint"
},
"dependencies": {
"@crustio/ipfs-w3auth-handler": "^0.0.16",
"@crustio/ipfs-w3auth-handler": "^0.0.18",
"@polkadot/api": "^5.9.1",
"avalanche": "3.8.1",
"bs58": "^4.0.1",
Expand Down
90 changes: 73 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
dependencies:
regenerator-runtime "^0.13.4"

"@crustio/ipfs-w3auth-algorand@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-algorand/-/ipfs-w3auth-algorand-0.0.3.tgz#4cc69f3f5856b7476ece44fb7404a30f753ff72f"
integrity sha512-4anisOnuxyKUvnZ5K6OgvmfFYL9X/bZBoIxgaIL+MywM0w+M1JFP7uLXblBxTN3FQED4xMO97ygEhO3PlFghxw==
dependencies:
algosdk "^2.7.0"

"@crustio/ipfs-w3auth-aptos@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-aptos/-/ipfs-w3auth-aptos-0.0.3.tgz#0082893549065e0567a1b8e7ff81f04131e258f2"
Expand Down Expand Up @@ -78,19 +85,20 @@
"@onflow/fcl" "0.0.77"
"@onflow/types" "0.0.5"

"@crustio/ipfs-w3auth-handler@^0.0.13":
version "0.0.13"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-handler/-/ipfs-w3auth-handler-0.0.13.tgz#aaaebd29bab863f18aa06c1d3635672928b21a87"
integrity sha512-+z5/ppDn9ymSYZrpsPkEkwXt6sZATMy+f/95ajfmhez/HYhklyUg2U26X9P6w/1bxWoZshLRNta0rzMvnanaoA==
"@crustio/ipfs-w3auth-handler@^0.0.18":
version "0.0.18"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-handler/-/ipfs-w3auth-handler-0.0.18.tgz#0704f65e5353cd8da01438d22c96a954ab78f505"
integrity sha512-QlgV4kYihIY6HkG2jac7lTXPkcoA5c+bWU1LVqdGgjvZ0i21lP7ELMPR9CVa5BRyGVFxwd7uHfLrAfAk8VOuIA==
dependencies:
"@crustio/ipfs-w3auth-algorand" "^0.0.3"
"@crustio/ipfs-w3auth-aptos" "^0.0.3"
"@crustio/ipfs-w3auth-avalanche" "^0.0.1"
"@crustio/ipfs-w3auth-elrond" "^0.0.1"
"@crustio/ipfs-w3auth-ethereum" "^0.0.2"
"@crustio/ipfs-w3auth-flow" "^0.0.1"
"@crustio/ipfs-w3auth-solana" "^0.0.1"
"@crustio/ipfs-w3auth-substrate" "^0.0.1"
"@crustio/ipfs-w3auth-xx" "^0.0.1"
"@crustio/ipfs-w3auth-substrate" "^0.0.3"
"@crustio/ipfs-w3auth-xx" "^0.0.4"
express "^4.17.1"
lodash "^4.17.21"
winston "^3.3.3"
Expand All @@ -103,17 +111,17 @@
bs58 "^4.0.1"
tweetnacl "^1.0.3"

"@crustio/ipfs-w3auth-substrate@^0.0.1":
version "0.0.1"
resolved "https://registry.npmjs.org/@crustio/ipfs-w3auth-substrate/-/ipfs-w3auth-substrate-0.0.1.tgz"
integrity sha512-4lTMIC3tOpeCefQnw5IIOHgrLE/a06QgfqNzMHafSkKKhRn7wEtZBgPeWAGC9m5oE0Wr8ikRLdLTnwIVGOp6Jg==
"@crustio/ipfs-w3auth-substrate@^0.0.3":
version "0.0.3"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-substrate/-/ipfs-w3auth-substrate-0.0.3.tgz#3236e06b0550d404164bb57a817c2b108cb9c092"
integrity sha512-eKC1k5RGMJHr6dg8tveJBcTAVr0yfGYsVsLzGy6YEo7nP7aT8B0CETNBQEeYJj9+/ZAggH43PHD0IEhVNiTq6g==
dependencies:
"@polkadot/api" "^5.6.1"

"@crustio/ipfs-w3auth-xx@^0.0.1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-xx/-/ipfs-w3auth-xx-0.0.1.tgz#db02466184ee81a3279c1f89721ba8b97a3676d7"
integrity sha512-FgqVQ6y5BuithVKCztJN5WUaKwZ2uE5brDHI/YGFBhr6VUiEoIEkLjxK1Y7CmaULFuUNTJkgBXHNj/HICrlpJw==
"@crustio/ipfs-w3auth-xx@^0.0.4":
version "0.0.4"
resolved "https://registry.yarnpkg.com/@crustio/ipfs-w3auth-xx/-/ipfs-w3auth-xx-0.0.4.tgz#8e15fcb7f9ff3bf9f476298575de0e73d0bd39a4"
integrity sha512-beyOqUqhc13sw4FwFJshlg+3ezs7bTG9275N2xVUKqZ0HjF/J9FqmDQGFjyrBZVNvQVxwMlpImCjEt9mPoL/JQ==
dependencies:
axios "^0.27.2"

Expand Down Expand Up @@ -1650,6 +1658,26 @@ ajv@^8.0.1:
require-from-string "^2.0.2"
uri-js "^4.2.2"

algo-msgpack-with-bigint@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/algo-msgpack-with-bigint/-/algo-msgpack-with-bigint-2.1.1.tgz#38bb717220525b3ff42232eefdcd9efb9ad405d6"
integrity sha512-F1tGh056XczEaEAqu7s+hlZUDWwOBT70Eq0lfMpBP2YguSQVyxRbprLq5rELXKQOyOaixTWYhMeMQMzP0U5FoQ==

algosdk@^2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/algosdk/-/algosdk-2.7.0.tgz#6ebab130d25fc3cb4c74dce4d8753c7e86db1404"
integrity sha512-sBE9lpV7bup3rZ+q2j3JQaFAE9JwZvjWKX00vPlG8e9txctXbgLL56jZhSWZndqhDI9oI+0P4NldkuQIWdrUyg==
dependencies:
algo-msgpack-with-bigint "^2.1.1"
buffer "^6.0.3"
hi-base32 "^0.5.1"
js-sha256 "^0.9.0"
js-sha3 "^0.8.0"
js-sha512 "^0.8.0"
json-bigint "^1.0.0"
tweetnacl "^1.0.3"
vlq "^2.0.4"

ansi-align@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/ansi-align/download/ansi-align-3.0.0.tgz"
Expand Down Expand Up @@ -1846,7 +1874,7 @@ base-x@^3.0.2, base-x@^3.0.8:
dependencies:
safe-buffer "^5.0.1"

base64-js@^1.0.2, base64-js@^1.5.1:
base64-js@^1.0.2, base64-js@^1.3.1, base64-js@^1.5.1:
version "1.5.1"
resolved "https://registry.npm.taobao.org/base64-js/download/base64-js-1.5.1.tgz"
integrity sha1-GxtEAWClv3rUC2UPCVljSBkDkwo=
Expand Down Expand Up @@ -2063,6 +2091,14 @@ [email protected], buffer@^5.5.0:
base64-js "^1.0.2"
ieee754 "^1.1.4"

buffer@^6.0.3:
version "6.0.3"
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
dependencies:
base64-js "^1.3.1"
ieee754 "^1.2.1"

buffers@~0.1.1:
version "0.1.1"
resolved "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz"
Expand Down Expand Up @@ -3594,6 +3630,11 @@ [email protected]:
safe-buffer "^5.1.1"
secp256k1 "^4.0.0"

hi-base32@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/hi-base32/-/hi-base32-0.5.1.tgz#1279f2ddae2673219ea5870c2121d2a33132857e"
integrity sha512-EmBBpvdYh/4XxsnUybsPag6VikPYnN30td+vQk+GI3qpahVEG9+gTkG0aXVxTjBqQ5T6ijbWIu77O+C5WFWsnA==

hmac-drbg@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/hmac-drbg/download/hmac-drbg-1.0.1.tgz"
Expand Down Expand Up @@ -3652,7 +3693,7 @@ [email protected], iconv-lite@^0.4.24:
dependencies:
safer-buffer ">= 2.1.2 < 3"

ieee754@^1.1.4:
ieee754@^1.1.4, ieee754@^1.2.1:
version "1.2.1"
resolved "https://registry.npm.taobao.org/ieee754/download/ieee754-1.2.1.tgz?cache=0&sync_timestamp=1603841495413&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fieee754%2Fdownload%2Fieee754-1.2.1.tgz"
integrity sha1-jrehCmP/8l0VpXsAFYbRd9Gw01I=
Expand Down Expand Up @@ -4034,6 +4075,11 @@ isomorphic-ws@^4.0.1:
resolved "https://registry.npm.taobao.org/isomorphic-ws/download/isomorphic-ws-4.0.1.tgz"
integrity sha1-Vf1M1sXmSR523BJZON2GP1zU8tw=

js-sha256@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/js-sha256/-/js-sha256-0.9.0.tgz#0b89ac166583e91ef9123644bd3c5334ce9d0966"
integrity sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==

[email protected]:
version "0.5.7"
resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.5.7.tgz"
Expand All @@ -4044,6 +4090,11 @@ [email protected], js-sha3@^0.8.0:
resolved "https://registry.npm.taobao.org/js-sha3/download/js-sha3-0.8.0.tgz"
integrity sha1-ubel2nOvrX3t0PjEY5VMveaBiEA=

js-sha512@^0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/js-sha512/-/js-sha512-0.8.0.tgz#dd22db8d02756faccf19f218e3ed61ec8249f7d4"
integrity sha512-PWsmefG6Jkodqt+ePTvBZCSMFgN7Clckjd0O7su3I0+BW2QWUTJNzjktHsztGLhncP2h8mcF9V9Y2Ha59pAViQ==

js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.nlark.com/js-tokens/download/js-tokens-4.0.0.tgz"
Expand All @@ -4057,7 +4108,7 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"

[email protected]:
[email protected], json-bigint@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz"
integrity sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==
Expand Down Expand Up @@ -6090,6 +6141,11 @@ vary@^1, vary@~1.1.2:
resolved "https://registry.npm.taobao.org/vary/download/vary-1.1.2.tgz"
integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=

vlq@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/vlq/-/vlq-2.0.4.tgz#6057b85729245b9829e3cc7755f95b228d4fe041"
integrity sha512-aodjPa2wPQFkra1G8CzJBTHXhgk3EVSwxSWXNPr1fgdFLUb8kvLV1iEb6rFgasIsjP82HWI6dsb5Io26DDnasA==

webidl-conversions@^3.0.0:
version "3.0.1"
resolved "https://registry.nlark.com/webidl-conversions/download/webidl-conversions-3.0.1.tgz"
Expand Down

0 comments on commit eabe3ab

Please sign in to comment.