Skip to content

Managing origin key#57

Merged
6 commits merged intoarchethic-foundation:masterfrom
Neylix:Managing-origin-key
Jun 10, 2022
Merged

Managing origin key#57
6 commits merged intoarchethic-foundation:masterfrom
Neylix:Managing-origin-key

Conversation

@Neylix
Copy link
Copy Markdown
Member

@Neylix Neylix commented Jun 10, 2022

Fixes #55
This PR update the management of origin key.
Update the function getOriginKey to return the hardcoded genesis origin private key.
Create a new function addOriginKey to be able to request a node to add a new origin public key with its certificate.

This issue depend of archethic-foundation/archethic-node#343

@Neylix Neylix requested a review from a user June 10, 2022 11:15
@Neylix Neylix added the breaking-change Identify a change with a breaking API label Jun 10, 2022
Comment thread README.md Outdated
#### getOriginKey(endpoint, authorizedPublicKey, privateKey)
Query a node to get the origin private key encrypted by the `authorizedPublicKey`. This origin private key is used to sign the transaction (see originSign).
#### getOriginKey()
Return the hardcoded origin private key for software, this is used fot signing transaction (see OriginSign).
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just some typo fix: for signing.

Also we might put this function in the crypto section maybe.

@ghost ghost merged commit 4b2544b into archethic-foundation:master Jun 10, 2022
@Neylix Neylix deleted the Managing-origin-key branch June 10, 2022 14:32
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change Identify a change with a breaking API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Managing Origin Key

1 participant