LibertyDSNP / spec

The DSNP Spec and Website
https://spec.dsnp.org
Other
30 stars 3 forks source link

Update Frequency Implementation with Operations #219

Closed wilwade closed 1 year ago

wilwade commented 1 year ago

The Frequency implementation should match Frequency actions with DSNP Operations from https://github.com/LibertyDSNP/spec/issues/214

wesbiggs commented 1 year ago

Compliance Template

This template is provided for DSNP implementors to outline how developers can map implementation APIs to DSNP requirements.

Overview

  1. What is the name of the DSNP implementation?

Frequency

  1. What version of the DSNP specification is currently supported?

1.1

  1. Describe the general architecture of the implementation.

Frequency is a Polkadot parachain launched in November 2022. Users connect to Frequency nodes using the JSON-RPC protocol.

  1. Where can developers learn more about the implementation?

Documentation Github Discord Forums

Control Keys

  1. How are control keys expressed in the implementation?

sr25519 public key (32 bytes)

  1. How do users create control keys?

Users generate a key pair from a custodial or non-custodial wallet. The public key must be provided to create a MSA.

  1. What is the serialization format for control keys?

SS58

  1. How do users generate control key ownership proofs?

Sign payloads with sr25519 public key

  1. What is the serialization format for control key ownership proofs?

Substrate MultiSig

Operations

  1. Provide an overview of how DSNP Operations are invoked in the implementation, including the use of Transaction Identifiers.

TBD

  1. Describe how each DSNP Operation may be invoked, including input parameters, expected outputs, and error handling.

Create Identifier

TBD create create_sponsored_account_with_delegation

Retire Identifier

TBD retire_msa

Define Delegation

TBD Defined at account creation time when using create_sponsored_account_with_delegation grant_delegation

Revoke Delegation

TBD revoke_delegation_by_delegator revoke_delegation_by_provider

Add Control Key (optional)

TBD add_public_key_to_msa

Remove Control Key (optional)

TBD delete_msa_public_key

Publish Announcement

TBD All announcements are batched

Publish Batch

TBD add_onchain_message

Records

  1. Provide an overview of how DSNP State Change Records are emitted by the implementation, including the use of Transaction Identifiers.

TBD

  1. Describe how external systems can subscribe to or otherwise view all state changes.

TBD

  1. Describe the encoding of each DSNP State Change Record.

Identifier Creation Record

TBD

Delegation Definition Record

TBD

Delegation Revocation Record

TBD

Control Key Addition Record (optional)

TBD

Control Key Removal Record (optional)

TBD

Announcement Published Record

TBD

Batch Published Record

TBD

Failure Record

TBD