예제 #1
0
 public static bool TryCreate(ReadOnlySpan <byte> input32, Context?context, [MaybeNullWhen(false)] out ECXOnlyPubKey pubkey)
 {
     pubkey = null;
     if (input32.Length != 32)
     {
         return(false);
     }
     if (!FE.TryCreate(input32, out var x))
     {
         return(false);
     }
     return(TryCreate(x, context, out pubkey));
 }
예제 #2
0
 public static bool TryCreate(ReadOnlySpan <byte> input32, [MaybeNullWhen(false)] out ECXOnlyPubKey pubkey)
 {
     return(TryCreate(input32, null, out pubkey));
 }