![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@xlabs-libs/wallet-aggregator-core
Advanced tools
Basic Wallet abstractions to interact with blockchains.
Basic Wallet abstractions to interact with blockchains.
In order to implement a wallet for a given chain through the sdk, simply import the Wallet
class and extend from it. The abstraction defines a set of generic arguments to define the types the methods it will expect and interact with (e.g. a transaction request type, a message to sign, the result of submitting a tx to network, etc).
The Wallet
class implements the EventEmitter
interface, letting the client subscribe to the following events:
Event | Description |
---|---|
connect | Signals the wallet has succesfully connected |
disconnect | Signals the wallet has succesfully disconnected |
networkChanged | Signals whether a change in the network was detected. Useful for working with EVM wallets. |
New events can be added by extending the WalletEvents
class.
Example:
import { Wallet, WalletEvents } from "@xlabs/wallet-aggregator-core";
// define types
type MyUnsignedTransactionType = // ...
// ...
interface MyEventsType extends WalletEvents {
// ...
}
class MyBlockchainWallet extends Wallet<
MyUnsignedTransactionType,
MySignedTransactionType,
MySignedTransactionType,
MySubmitTransactionResultType,
MyNetworkInfoType,
MyMessageType,
MyMessageResultType,
MyEventsType
> {
// code...
}
The blockchain IDs follow those of Wormhole. A constants file is provided with said chain ids.
Refer to the Wormhole documentation if you wish to know more about the project.
FAQs
Basic Wallet abstractions to interact with blockchains.
We found that @xlabs-libs/wallet-aggregator-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.