recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Recipe for Application Crypto

Open JoshOrndorff opened this issue 6 years ago • 1 comments

When would I ant to add a key type? One example is adding or removing grandpa. When would a pallet that doesn't cross the wasm boundary do it? Would it?

JoshOrndorff avatar Dec 18 '19 22:12 JoshOrndorff

I came across this great overview of the three levels to account crypto:

  • Pair (for creating transactions)
  • Public (always derivable from Pair through the associated type Verify::Signer, and in the case of SECP256k1/ECDSA, also from a valid Signature with the ECDSA Recover opreation)
  • AccountId (always derivable from Public using IdentifyAccount::AccountId)

4meta5 avatar Jan 05 '20 21:01 4meta5