Operation
import { Operation } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/proof/mod.ts";
Proof operation
abstract class Operation { }
abstract commit(input: Uint8Array): Uint8Array;
abstract toString(): string;
§Methods
§
toJSON(): OperationTemplate abstract
[src]Converts the operation to a JSON-serializable template.
§Static Methods
§
Creates a subclassed operation from a template object.
Throws InvalidTemplateError
if the template is invalid.
Throws UnsupportedOperationError
if operation is not supported.
Operation.from({
type: "sha256",
});
// Sha256Operation {}
@param template
Template object