Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

oo7-substrate submit secret/private-key option #89

@retotrinkler

Description

@retotrinkler

Would be nice to have a secretKey alternative to the existing mnemonic phrase option something like the following:

	submitSecretKey (secretKey, name) {
		this._keys.push({secretKey, name})
		this._sync()
		return this.accountFromSecretKey(secretKey)
	}

	accountFromSecretKey (secretKey) {
		return new AccountId(nacl.sign.keyPair.fromSecretKey(secretKey).publicKey)
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions