Description Confirmed Mismatch
Documented/TS Order (per README & index.d.ts - official guide):
verify(data: string, signature: string, key: string)
→ Expected Input Order: data→ signature → key
Native Implementation Order (verified via iOS/Android source code & testing):
Both iOS (RSA.swift) and Android (RSAModule.java) expect:
verify(signature: string, withMessage: string, key: string)
→ Actual Working Order: signature → withMessage→ key
Reproducible Steps
Prepare valid data (original message), signature (signed string), and publicKey.
Call with documented order (Fails, returns false):
const isVerified = await RSA.verify(data, signature, publicKey);
Call with native order (Succeeds, returns correct boolean):
const isVerified = await RSA.verify(signature, data, publicKey);
Expected Resolution
Update docs/index.d.ts to clearly state the actual working order: signature → data→ key.
Reactions are currently unavailable
You can’t perform that action at this time.
Confirmed Mismatch
Documented/TS Order (per README & index.d.ts - official guide):
verify(data: string, signature: string, key: string)→ Expected Input Order:
data→ signature → keyNative Implementation Order (verified via iOS/Android source code & testing):
Both iOS (RSA.swift) and Android (RSAModule.java) expect:
verify(signature: string, withMessage: string, key: string)→ Actual Working Order:
signature → withMessage→ keyReproducible Steps
data(original message),signature(signed string), andpublicKey.const isVerified = await RSA.verify(data, signature, publicKey);const isVerified = await RSA.verify(signature, data, publicKey);Expected Resolution
signature → data→ key.