Implemented fix as specified in original interface:
# limitations under the License.
import asyncio
+from hashlib import blake2b
import binascii
import json
from loguru import logger
@@ -1097,6 +1098,9 @@ class SubstrateWSInterface:
signature_payload.encode(payload_dict)
+ if signature_payload.data.length > 256:
+ return ScaleBytes(data=blake2b(signature_payload.data.data, digest_size=32).digest())
+
return signature_payload.data
async def create_signed_extrinsic(self, call, keypair: Keypair, era=None, nonce=None, tip=0, signature=None):
