github.com/incognitochain/go-incognito-sdk@v1.0.1/privacy/constants.go (about)

     1  package privacy
     2  
     3  import "math/big"
     4  
     5  const (
     6  	pointCompressed       byte = 0x2
     7  	elGamalCiphertextSize      = 64 // bytes
     8  	schnMultiSigSize           = 65 // bytes
     9  )
    10  
    11  const (
    12  	Ed25519KeySize        = 32
    13  	AESKeySize            = 32
    14  	CommitmentRingSize    = 8
    15  	CommitmentRingSizeExp = 3
    16  	CStringBulletProof    = "bulletproof"
    17  	CStringBurnAddress    = "burningaddress"
    18  	FixedRandomnessString = "fixedrandomness"
    19  )
    20  
    21  const (
    22  	MaxSizeInfoCoin = 255 // byte
    23  )
    24  
    25  var LInt = new(big.Int).SetBytes([]byte{0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x14, 0xde, 0xf9, 0xde, 0xa2, 0xf7, 0x9c, 0xd6, 0x58, 0x12, 0x63, 0x1a, 0x5c, 0xf5, 0xd3, 0xed})
    26  
    27  // FixedRandomnessShardID is fixed randomness for shardID commitment from param.BCHeightBreakPointFixRandShardCM
    28  // is result from HashToScalar([]byte(FixedRandomnessString))
    29  var FixedRandomnessShardID = new(Scalar).FromBytesS([]byte{0x60, 0xa2, 0xab, 0x35, 0x26, 0x9, 0x97, 0x7c, 0x6b, 0xe1, 0xba, 0xec, 0xbf, 0x64, 0x27, 0x2, 0x6a, 0x9c, 0xe8, 0x10, 0x9e, 0x93, 0x4a, 0x0, 0x47, 0x83, 0x15, 0x48, 0x63, 0xeb, 0xda, 0x6})