# Sign helper

Sign helper allows to easily perform signature-related operations.

# Provided operations

Below you can find the sign helper's provided operations with some examples

  1. Converts the given data into an alphabetically sorted JSON object and signs its content using the given wallet

    static Uint8List signSorted(Map<String, dynamic> data, Wallet wallet)
    
    1
  2. Concatenates senderDid, pairwiseDid and timestamp and make a SHA-256 digest of it. Then uses the rsaPrivateKey to sign the hash and returning the resulting bytes.

    static Uint8List signPowerUpSignature({
      required String senderDid,
      required String pairwiseDid,
      required String timestamp,
      required CommercioRSAPrivateKey rsaPrivateKey,
    })
    
    1
    2
    3
    4
    5
    6