code: def register_offchain_secret(
          channel_state: NettingChannelState,
          secret: Secret,
          secrethash: SecretHash,
  ) -> None:
      
      our_state = channel_state.our_state
      partner_state = channel_state.partner_state
  
      register_secret_endstate(our_state, secret, secrethash)
      register_secret_endstate(partner_state, secret, secrethash)
docs: This will register the secret and set the lock to the unlocked stated.
  
      Even though the lock is unlock it is *not* claimed. The capacity will
      increase once the next balance proof is received.