Witness

Interface
Witness is just that, a 'witness' to the transaction, meaning they have approved the transaction. Can vary from a simple signature of the transaction for a given Address' private key or a 'witness' being a smart contract and the way it's verified is by executing the smart contract code.
export interface Witness { 
  readonly invocation: BufferString; 
  readonly verification: BufferString; 
} 

Properties

invocation
Sets up the stack for the verification script.
verification
A script that should leave either a true value on the stack if the Witness is valid, or false otherwise.
  • @neo-one/client
  • @neo-one/smart-contract
DOCS
InstallationMain ConceptsAdvanced GuidesAPI ReferenceContributing
CHANNELS
GitHubStack OverflowDiscord ChatTwitterYouTube
COPYRIGHT © 2021 NEO•ONE