Skip to content

Commit

Permalink
Group Key Rotation (#305)
Browse files Browse the repository at this point in the history
* bump to the latest version

* latest version of the jni lib
  • Loading branch information
nplasterer authored Oct 8, 2024
1 parent 8f1a75f commit a7f2e3c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/libxmtp-version.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: bb7a38f7
Version: 137062e8
Branch: main
Date: 2024-10-01 18:08:33 +0000
Date: 2024-10-08 19:58:58 +0000
18 changes: 13 additions & 5 deletions library/src/main/java/xmtpv3.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ internal interface UniffiLib : Library {
`signatureBytes`: RustBuffer.ByValue,
`address`: RustBuffer.ByValue,
`chainId`: Long,
`blockNumber`: Long,
`blockNumber`: RustBuffer.ByValue,
): Long

fun uniffi_xmtpv3_fn_method_ffisignaturerequest_is_ready(
Expand Down Expand Up @@ -2155,7 +2155,7 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
if (lib.uniffi_xmtpv3_checksum_method_ffisignaturerequest_add_ecdsa_signature() != 8706.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_xmtpv3_checksum_method_ffisignaturerequest_add_scw_signature() != 23994.toShort()) {
if (lib.uniffi_xmtpv3_checksum_method_ffisignaturerequest_add_scw_signature() != 52793.toShort()) {
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
}
if (lib.uniffi_xmtpv3_checksum_method_ffisignaturerequest_is_ready() != 65051.toShort()) {
Expand Down Expand Up @@ -4862,7 +4862,7 @@ public interface FfiSignatureRequestInterface {
`signatureBytes`: kotlin.ByteArray,
`address`: kotlin.String,
`chainId`: kotlin.ULong,
`blockNumber`: kotlin.ULong,
`blockNumber`: kotlin.ULong?,
)

suspend fun `isReady`(): kotlin.Boolean
Expand Down Expand Up @@ -4998,7 +4998,7 @@ open class FfiSignatureRequest : Disposable, AutoCloseable, FfiSignatureRequestI
`signatureBytes`: kotlin.ByteArray,
`address`: kotlin.String,
`chainId`: kotlin.ULong,
`blockNumber`: kotlin.ULong,
`blockNumber`: kotlin.ULong?,
) {
return uniffiRustCallAsync(
callWithPointer { thisPtr ->
Expand All @@ -5007,7 +5007,7 @@ open class FfiSignatureRequest : Disposable, AutoCloseable, FfiSignatureRequestI
FfiConverterByteArray.lower(`signatureBytes`),
FfiConverterString.lower(`address`),
FfiConverterULong.lower(`chainId`),
FfiConverterULong.lower(`blockNumber`),
FfiConverterOptionalULong.lower(`blockNumber`),
)
},
{ future, callback, continuation ->
Expand Down Expand Up @@ -7846,6 +7846,8 @@ sealed class GenericException(message: String) : kotlin.Exception(message) {

class Erc1271SignatureException(message: String) : GenericException(message)

class Verifier(message: String) : GenericException(message)


companion object ErrorHandler : UniffiRustCallStatusErrorHandler<GenericException> {
override fun lift(error_buf: RustBuffer.ByValue): GenericException =
Expand All @@ -7868,6 +7870,7 @@ public object FfiConverterTypeGenericError : FfiConverterRustBuffer<GenericExcep
9 -> GenericException.Generic(FfiConverterString.read(buf))
10 -> GenericException.SignatureRequestException(FfiConverterString.read(buf))
11 -> GenericException.Erc1271SignatureException(FfiConverterString.read(buf))
12 -> GenericException.Verifier(FfiConverterString.read(buf))
else -> throw RuntimeException("invalid error enum value, something is very wrong!!")
}

Expand Down Expand Up @@ -7933,6 +7936,11 @@ public object FfiConverterTypeGenericError : FfiConverterRustBuffer<GenericExcep
buf.putInt(11)
Unit
}

is GenericException.Verifier -> {
buf.putInt(12)
Unit
}
}.let { /* this makes the `when` an expression, which ensures it is exhaustive */ }
}

Expand Down
Binary file modified library/src/main/jniLibs/arm64-v8a/libuniffi_xmtpv3.so
Binary file not shown.
Binary file modified library/src/main/jniLibs/armeabi-v7a/libuniffi_xmtpv3.so
Binary file not shown.
Binary file modified library/src/main/jniLibs/x86/libuniffi_xmtpv3.so
Binary file not shown.
Binary file modified library/src/main/jniLibs/x86_64/libuniffi_xmtpv3.so
Binary file not shown.

0 comments on commit a7f2e3c

Please sign in to comment.