Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@elrondnetwork/attest
Advanced tools
The npm package of the __Elrond Attest__ service, built using [Node.js](https://nodejs.org/en/) and [Typescript](https://www.typescriptlang.org/).
The npm package of the Elrond Attest service, built using Node.js and Typescript.
Note that these may be subject to change
Note that the following methods may be subject to change
// In both examples, base url refers to the url of
// the ElrondAttest api
// Initialization with api key
const api = AttestApi.withApiKey(apiKey, baseUrl)
// Initialization with access token
const api = AttestApi.withToken(token, baseUrl)
// Fetching account data
api.account() // returns an Axios promise
// Creating a file attestation
const input = {
type: 'file',
sha256: 'some hash here'
}
api.create(input) // returns an Axios promise
// Creating an object attestation
const input = {
type: 'object',
sha256: 'some hash here',
object: {
//...
}
}
api.create(input) // returns an Axios promise
// Fetching the user's attested files
api.accountRecords() // returns an Axios promise
// Verifying if a file is attested
const hashOfFileToVerify = 'some hash'
api.records(hashOfFileToVerify)
type HashResult = {
type: 'file' | 'object',
sha256: string,
object?: object
}
// An already read file
const file = {}
// Callback for setting progress
// receives a number between 0 & 100 representing progress
// returns void
const setProgress = progress => {}
// Callback called on finalization
// receives a HashResult object representing the hashed file
// returns void
const onFinalize = hashResult => {}
webHash(file, setProgress, onFinalize)
const path = 'Path to file...'
cliHash(path) // Returns Promise<HashResult>
FAQs
The npm package of the __Elrond Attest__ service, built using [Node.js](https://nodejs.org/en/) and [Typescript](https://www.typescriptlang.org/).
The npm package @elrondnetwork/attest receives a total of 0 weekly downloads. As such, @elrondnetwork/attest popularity was classified as not popular.
We found that @elrondnetwork/attest demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.