Skip to content

Security amendment to 0048 ownership proof#147

Open
drskalman wants to merge 2 commits into
polkadot-fellows:mainfrom
drskalman:coax1d-skalman--security-amendment-to-0048-ownership-proof
Open

Security amendment to 0048 ownership proof#147
drskalman wants to merge 2 commits into
polkadot-fellows:mainfrom
drskalman:coax1d-skalman--security-amendment-to-0048-ownership-proof

Conversation

@drskalman

Copy link
Copy Markdown
Contributor

This RFC is an amendment to RFC-0048. It proposes to change the OpaqueKeysInner:create_ownership_proof and OpaqueKeys:: ownership_proof_is_valid
to invoke generation and validation procedure specific to each crypto time. This enable different crypto scheme implement
the proof of possession fitted to their security need. In short, this RFC delegates the procedure of generating and validating proof of possession to the crypto scheme. This has been implemented: https://github.com/paritytech/polkadot-sdk/pull/6010/files#r2003580725

@anaelleltd anaelleltd added the Proposed Is awaiting 3 formal reviews. label May 31, 2025

However, each signature is generated by the crypto scheme instead of each private session key signing the `account_id`. By default, the following statement is signed by the crypto scheme:

```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```rust

However, each signature is generated by the crypto scheme instead of each private session key signing the `account_id`. By default, the following statement is signed by the crypto scheme:

```
rust

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rust

The significant difference is that proof of possession suggested by RFC-0048 is signed:

```
rust

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rust


The significant difference is that proof of possession suggested by RFC-0048 is signed:

```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```
```rust

vs the current proposal suggests changing the statement to:

```
rust

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rust

vs the current proposal suggests changing the statement to:

```
rust

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rust


## Future Directions and Related Material

\- \[1\] Substrate implementation of the generation of proof of possession for all crypto schemes (current and experimental ones) is implemented in Pull 6010.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\- \[1\] Substrate implementation of the generation of proof of possession for all crypto schemes (current and experimental ones) is implemented in Pull 6010.
\- \[1\] Substrate implementation of the generation of proof of possession for all crypto schemes (current and experimental ones) is implemented in [PR 6010](https://github.com/paritytech/polkadot-sdk/pull/6010).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Proposed Is awaiting 3 formal reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants