开源软件名称: crustio/ipfs-w3auth-pinning-service开源软件地址: https://github.com/crustio/ipfs-w3auth-pinning-service开源编程语言:
TypeScript
99.4%
开源软件介绍: IPFS W3Auth Pinning Service
Decentralized IPFS remote pinning service with Crust Network .
✨ Usage
The IPFS W3Auth Pinning Service(aka. W3Auth PS) is compatible with standard IPFS remote pinning service. You can refer IPFS Docs to learn how to use remote pin.
As for the Access Token of W3Auth PS, you can easily get it with several web3 ways.
Authorization: Bear < base64(ChainType-PubKey:SignedMsg)>
Let's take ipfs cli
as an example
ipfs pin remote service add crustpinner http://localhost:3000/psa base64(ChainType-PubKey:SignedMsg)
Get ChainType
ChainType
now can be:
sub
(or substrate
)
eth
(or ethereum
)
sol
(or solana
)
pol
(or polygon
)
nea
(or near
)
ava
(or avalanche
)
And you can get PubKey
and SignedMsg
by using the following web3-ways:
Get Pubkey and SignedMsg
1. With Substrate
Get PubKey
PubKey
is just the substrate address, like 5Chu5r5GA41xFgMXLQd6CDjz1ABGEGVGS276xjv93ApY6vD7
All substrate-based chains are adapted:
Get SignedMsg
Just sign the PubKey
with your private key to get the SignedMsg
2. With Ethereum
Get PubKey
PubKey
is just the ethereum address(42-characters) start with 0x
Get SignedMsg
Just sign the PubKey
with your eth private key to get the SignedMsg
3. With Moonriver
Moonriver is fully compatiable with the Ethereum, you can just follow the same steps with the Ethereum.
Get PubKey
PubKey
is just the moonriver(ethereum) address(42-characters) start with 0x
Get SignedMsg
Just sign the PubKey
with your moonriver private key to get the SignedMsg
4. With Solana
Get PubKey
PubKey
is just the solana address
Get SignedMsg
You can sign the PubKey
with your solana private key to get the SignedMsg
5. With Polygon
Get PubKey
PubKey
is just the polygon address(42-characters) start with 0x
. It's compatiable with the ethereum.
Get SignedMsg
Just sign the PubKey
with your polygon private key to get the SignedMsg
6. With Near
You can sign the PubKey
with one of your near private key associated with your account to get the SignedMsg
7. With Avalanche
You can sign the Address
without chainID prefix, such as avax1se4e9lvhlfwhcqnzjr0vpswqcnhsy5atn5r0l3
, with your X- or P- chain private key associated with your account to get the SignedMsg
.
请发表评论