Skip to content

Instantly share code, notes, and snippets.

View will-break-it's full-sized avatar

William will-break-it

View GitHub Profile
@will-break-it
will-break-it / secure-key-storage.md
Created August 7, 2023 16:09 — forked from hanwencheng/secure-key-storage.md
Parity-Signer Secure Key Storage Proposal

Parity-Signer Secure Key Storage Proposal

Here I conclude the recent research and discussions with the storage of the seed/private key in parity-signer.

Current Implementation

secureStorage1 Currently, we require a user to input a pin code for encrypting the seed, and then put the encrypted seed together with other account data into a secure store. The secure store then uses the native KeysStore or KeyChain to store the encrypted account data.

Possible improvement

secureStorage2

@will-break-it
will-break-it / freeable.ts
Last active May 22, 2023 11:31
CIP30 Cardano Wallet Service for deserializing wallet cbor to standard typescript types
export interface Freeable {
free: () => void;
}
/**
* A scope to ease the management of objects that require manual resource management.
*
*/
export class ManagedFreeableScope {
private scopeStack: Freeable[] = [];