You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defsign_identity(contribution: Contribution, x: int, identity: str) ->Contribution:
encoded_identity=b''ifidentity[:2] =='0x':
# Identity is a Ethereum addressencoded_identity=eth_address_to_identity(identity).encode()
else:
# Identity is an GitHub IDencoded_identity=github_handle_to_identity(identity).encode()
signature=bls.Sign(x, encoded_identity)
contribution.bls_signature=signature
defsign_contribution(batch_contribution: BatchContribution, ethereum_address: Optional[str]) ->BatchContribution:
typed_data=contribution_to_typed_data_str(batch_contribution) # function defined in contributionSigning.mdbatch_contribution.ecdsa_signature=web3.eth.sign_typed_data(ethereum_address, json.loads(typed_data))
returnbatch_contribution
The text was updated successfully, but these errors were encountered:
identity is required to sign.
There is no way we can get identity with cli.
It looks good to add a web interface after we add it.
I think this is why it's optional. @rootwarp What do you think?
identity is required to sign. There is no way we can get identity with cli. It looks good to add a web interface after we add it. I think this is why it's optional. @rootwarp What do you think?
@kim201212 Make sense.
This issue may be handled as optional if we have the plan to support web interface.
Spec.
Signing the contributions
The signing of contributions with Ethereum ECDSA keys and BLS signing the user's identity is RECOMMENDED.
x
as a private key to sign the user's encoded identity.TypedData
JSON object as per contributionSigning.mdweb3.eth.signTypedData()
to sign the messageThe text was updated successfully, but these errors were encountered: