public static async Task <RevealsCommit> Revert(ProtocolHandler proto, Block block, RevealOperation op) { var commit = new RevealsCommit(proto); await commit.Init(block, op); await commit.Revert(); return(commit); }
public static async Task <RevealsCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawRevealContent content) { var commit = new RevealsCommit(proto); await commit.Init(block, op, content); await commit.Apply(); return(commit); }