Migration from Witness SDK
If you integrated the Witness SDK in your project, i.e. before 17 Sep 2024, you can refer to this guide to migrate to the attestor-core SDK. The changes are purely nomeclature based & the core functionality remains the same.
As a Server
Nothing changes for you as a server. The attestor server is compatible with the Witness SDK & the attestor-core SDK. You can continue to run the attestor server as is.
As a Client
The following popular functions have been renamed:
createClaimOnWitness->createClaimOnAttestorgetWitnessClientFromPool->getAttestorClientFromPool
The following properties have been renamed in types:
WitnessData->AttestorDataWitnessError->AttestorError
The following protobuf names have been changed:
ClaimTunnelResponse.Signatures.witnessAddress->ClaimTunnelResponse.Signatures.attestorAddressWitnessErrorData->ErrorDataWitnessErrorCode->ErrorCodeWitnessVersion->AttestorVersion- package name
reclaim_witness->reclaim_attestor
As a Browser-RPC Client
In each request, instead of sending module: 'witness-sdk', you should send module: 'attestor-core'.