예제 #1
0
 /// <summary>
 /// Creates mosaicId from nonce
 /// </summary>
 /// <param name="nonce">The mosaic nonce</param>
 /// <param name="publicKeyHex">The public key in hex format</param>
 /// <returns></returns>
 public static MosaicId CreateFromNonce(MosaicNonce nonce, string publicKeyHex)
 {
     return new MosaicId(nonce, publicKeyHex);
 }
예제 #2
0
 private MosaicId(MosaicNonce nonce, string publicKeyHex)
 {
     Id = IdGenerator.GenerateMosaicId(BitConverter.ToUInt32(nonce.Nonce, 0), publicKeyHex);
     Nonce = nonce;
     OwnerPublicKeyHex = publicKeyHex;
 }