X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fenums%2FSecp256k1Error.ts;h=eef54a9b0b745cbf83a2c696d77d00cc74b77587;hb=f3e670e9341decac613d33fc52febf19cea32f20;hp=b116382f39c91817d3f72c5ef82e39a2bb34a568;hpb=e30b350e325e7d517ea744578876d473839ad495;p=ldk-java diff --git a/ts/enums/Secp256k1Error.ts b/ts/enums/Secp256k1Error.ts index b116382f..eef54a9b 100644 --- a/ts/enums/Secp256k1Error.ts +++ b/ts/enums/Secp256k1Error.ts @@ -1,13 +1,40 @@ export enum Secp256k1Error { - LDKSecp256k1Error_IncorrectSignature, - LDKSecp256k1Error_InvalidMessage, - LDKSecp256k1Error_InvalidPublicKey, - LDKSecp256k1Error_InvalidSignature, - LDKSecp256k1Error_InvalidSecretKey, - LDKSecp256k1Error_InvalidRecoveryId, - LDKSecp256k1Error_InvalidTweak, - LDKSecp256k1Error_TweakCheckFailed, - LDKSecp256k1Error_NotEnoughMemory, + /** + * Signature failed verification + */ +LDKSecp256k1Error_IncorrectSignature, + /** + * Badly sized message ("messages" are actually fixed-sized digests; see the MESSAGE_SIZE constant) + */ +LDKSecp256k1Error_InvalidMessage, + /** + * Bad public key + */ +LDKSecp256k1Error_InvalidPublicKey, + /** + * Bad signature + */ +LDKSecp256k1Error_InvalidSignature, + /** + * Bad secret key + */ +LDKSecp256k1Error_InvalidSecretKey, + /** + * Bad recovery id + */ +LDKSecp256k1Error_InvalidRecoveryId, + /** + * Invalid tweak for add_assign or mul_assign + */ +LDKSecp256k1Error_InvalidTweak, + /** + * tweak_add_check failed on an xonly public key + */ +LDKSecp256k1Error_TweakCheckFailed, + /** + * Didn't pass enough memory to context creation with preallocated memory + */ +LDKSecp256k1Error_NotEnoughMemory, }