Skip to content

Create valid transaction function #8

@lancekrogers

Description

@lancekrogers

Create a function that validates the transaction by confirming the below rules:

  1. The sender's public key is used to decrypt the signed_hash and the hash matches the transaction hash
  2. Each transaction in unspent_transactions is payable to the address hash derived from the sender's public key
  3. Each transaction in unspent_transactions has not been spent
  4. The total amount in unspent_transactions >= the total amount in outputs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions