Skip to content

Commit

Permalink
Remove unnecessary rotateVotingKeys and getVotingKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanoc committed Sep 13, 2022
1 parent 20feaf3 commit 106ff34
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions CIP-0062/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,32 +126,9 @@ The vote options. This is the set of options we can vote for.

# **`Delegation API`**

## **api.getVotingKeys**(): Promise<cbor<PublicKey\>[]>
Should return a list of all the voting keys for the current wallet.
## **api.getVotingKey**(): Promise\<cbor<PublicKey\>>

### **Returns**
An array with the cbor hex encoded public keys.

## **api.rotateVotingKey**(): Promise<cbor<PublicKey\>>
This call should explicitly rotate the current in-use voting key. Given the current `address_index` in the derivation path defined in [CIP-36](https://cips.cardano.org/cips/cip36/), it should be incremented by 1.

The key should be derived from the following path.

```
m / 1694' / 1815' / account' / role' / address_index'
```

`1694` (year Voltaire was born) Sets a dedicated `purpose` in the derivation path for the voting profile.

`address_index` - index of the key to use.

### **Returns**
cbor hex encoded representation of the public key


## **api.getCurrentVotingKey**(): Promise\<cbor<PublicKey\>>

Should return the current in-use voting public-key. The wallet should maintain a reference to the current `adress_index` counter and return the public key for that index.
Should return the in-use voting public-key. The wallet should maintain a reference to the current `adress_index` counter and return the public key for that index.

### **Returns**
cbor hex encoded representation of the public key.
Expand Down

0 comments on commit 106ff34

Please sign in to comment.