Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIP-0030: provide unique wallet identification #169

Open
koslambrou opened this issue Dec 9, 2021 · 5 comments
Open

CIP-0030: provide unique wallet identification #169

koslambrou opened this issue Dec 9, 2021 · 5 comments
Labels
State: Waiting for Author Proposal showing lack of documented progress by authors.

Comments

@koslambrou
Copy link

When trying to integrate light wallets with the Plutus Application Backend, I came across the issue where I need a wallet id before activating a contract. Currently, the PAB requires a wallet id encoded in blake2b_160, which is what Daedalus (cardano-wallet) uses.

Therefore, does it make sense to enhance the API with a getWalletId function?

Maybe something like:

api.getWalletId(): Promise<WalletId>

type WalletId = Blake2b_160;

@rooooooooob

@devtrix
Copy link

devtrix commented Dec 17, 2021

I need something like this as well.
@rooooooooob

@vsubhuman
Copy link
Contributor

Need a good definition of what is the "wallet id" in that case, and how Daedalus/PAB define it. It's gotta be a Blake2b_160 of something specific, there's no such thing as a wallet identity inherently in the scheme, can be some part of the derivation.

Yoroi has an experimental feature available in the connector now where you can request identification from a user, when connecting, and then receive an auth object with some parameters like a wallet ID and a dapp-specific pubkey, etc. We could add some PAB-specific identity there as well quite easily, before proposing the final version of this to the spec, but need to know what exactly the cardano-wallet is using in that case.

@koslambrou , can you provide some links to the PAB or cardano-wallet documentation where this specific wallet id is described?

@KtorZ
Copy link
Member

KtorZ commented May 10, 2022

The wallet id is a blake2b-160 digest of the root verification key of the wallet (root key obtained from CIP-0003).

@SebastienGllmt
Copy link
Contributor

One idea we had in the past was to instead define a new derivation paths for wallets that are a "utility key" path. You can still find the draft idea for this here: Emurgo/EmIPs#4

@SebastienGllmt
Copy link
Contributor

Also, depending on what you want this for, it may be related to #204

@KtorZ KtorZ added the State: Waiting for Author Proposal showing lack of documented progress by authors. label May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
State: Waiting for Author Proposal showing lack of documented progress by authors.
Projects
None yet
Development

No branches or pull requests

5 participants