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