# \[Archive\] Integrate Web3Auth with Hyperledger Fabric

**URL:** <https://builder.metamask.io/t/archive-integrate-web3auth-with-hyperledger-fabric/2072>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [February 20, 2023, 7:38am UTC](https://builder.metamask.io/t/archive-integrate-web3auth-with-hyperledger-fabric/2072 "2023-02-20T07:38:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [February 20, 2023, 7:38am UTC](https://builder.metamask.io/t/archive-integrate-web3auth-with-hyperledger-fabric/2072/1 "2023-02-20T07:38:04Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **githubdiscussions** on 2/20/2023.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

I want to use Web3Auth to integrate it with Hyperledger Fabric. For this purpose I need to sign a transaction or message without applying chainId in the signature. here is the code sample to sign a transaction:

`const elliptic = require(‘elliptic’);
const { KEYUTIL } = require(‘jsrsasign’);
const privateKeyPEM = ‘<The PEM encoded private key>’;
const { prvKeyHex } = KEYUTIL.getKey(privateKeyPEM); // convert the pem encoded key to hex encoded private key
const EC = elliptic.ec;
const ecdsaCurve = elliptic.curves[‘p256’];
const ecdsa = new EC(ecdsaCurve);
const signKey = ecdsa.keyFromPrivate(prvKeyHex, ‘hex’);
const sig = ecdsa.sign(Buffer.from(digest, ‘hex’), signKey);
`

`// now we have the signature, next we should send the signed transaction proposal to the peer
const signature = Buffer.from(sig.toDER());
`

How can I achieve it from Web3Auth? is there any way for customization?

  
   
 Originally posted by: [hnamzian](https://github.com/hnamzian)  
   
 Check the discussion at: [https://github.com/orgs/Web3Auth/discussions/1349](https://github.com/orgs/Web3Auth/discussions/1349)
