Skip to content

Commit

Permalink
Add some comment for delegate cell lock
Browse files Browse the repository at this point in the history
  • Loading branch information
blckngm committed Jan 28, 2023
1 parent 5ef449d commit 655763d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gwos/contracts/delegate-cell-lock/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ use ckb_std::{

use crate::error::Error;

/// A simple lock that delegates verification to another lock via a
/// delegate-cell. This is supposed to be used on the rollup cell to support
/// changing block producer key by e.g. multisig. In a production deployment,
/// the delegate cell is supposed to be a type-id cell with a multisig lock, and
/// delegates to secp256k1/blake160 lock with the current block producer key.
///
/// Lock args: type hash (and usually type-id) of delegate-cell.
///
/// Delegate-cell data should be blake160 hash of a lock script.
Expand Down

0 comments on commit 655763d

Please sign in to comment.