View Source Dpos.Tx.SecondSignature (DPoS v0.4.0)

A transaction to register a secondary public key to sign transactions.

Example:

wallet = Wallet.generate("first secret")
%{pub_key: second_pub_key} = Wallet.generate("second secret")

Tx.SecondSignature
|> Tx.build(%{fee: 2500000000})
|> Tx.SecondSignature.set_public_key(second_pub_key)
|> Tx.sign(wallet)

Summary

Functions

Sets the public key to register for second signature.

Functions

Link to this function

set_public_key(tx, pub_key)

View Source
@spec set_public_key(Dpos.Tx.t(), binary()) :: Dpos.Tx.t()

Sets the public key to register for second signature.