![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@rsksmart/ipfs-cpinner-provider
Advanced tools
@rsksmart/ipfs-cpinner-provider
RIF Identity - IPFS Centralized Pinner Provider
npm i @rsksmart/ipfs-cpinner-provider
A Centralized Data Vault provider compatible with RIF Data Vault standard interface. It stores content in an IPFS node associated to a given DID and key.
Plug and play configuration
import { ipfsPinnerProviderFactory, IpfsPinnedCid, IpfsMetadata } from '@rsksmart/ipfs-cpinner-provider'
import { createConnection } from 'typeorm'
const ipfsApiUrl = 'http://localhost:5001'
const maxStorage = 2000000 // 2 mb
const database = 'my-ipfs-pinner-provider.sqlite'
const Entities = [IpfsPinnedCid, IpfsMetadata]
const dbConnection = await createConnection({
type: 'sqlite',
database,
entities: Entities,
logging: false,
dropSchema: true,
synchronize: true
})
const ipfsPinnerProvider = await ipfsPinnerProviderFactory({ dbConnection, ipfsApiUrl, maxStorage })
// NOTE: ipfsApiUrl is optional. Default value is: 'http://localhost:5001'
// NOTE: maxStorage is optional. Default value is: 1000000 // 1 mb
const did = 'did:ethr:rsk:12345678'
const key = 'the key'
const content = 'the content'
const cid: string = await ipfsPinnerProvider.create(did, key, content)
const files: { id: string, content: string }[] = await ipfsPinnerProvider.get(did, key)
const keys: string[] = await ipfsPinnerProvider.getKeys(did)
const newCid: string = await ipfsPinnerProvider.swap(did, key, 'the new content')
const anotherCid: string = await ipfsPinnerProvider.swap(did, key, 'the new content', newCid) // cid can be specified if there is more than one content associated to the given did and key
const deleted: boolean = await ipfsPinnerProvider.delete(did, key)
const deleted: boolean = await ipfsPinnerProvider.delete(did, key, cid) // cid can be specified if there is more than one content associated to the given did and key
const availableStorage: number = await ipfsPinnerProvider.getAvailableStorage(did) // return the amount of bytes available to store value associated to the given did
See our documentation for advanced usage.
From base repo directory run npm test
or any of the described test script variants.
FAQs
RIF Identity - IPFS Centralized Pinner Provider
The npm package @rsksmart/ipfs-cpinner-provider receives a total of 0 weekly downloads. As such, @rsksmart/ipfs-cpinner-provider popularity was classified as not popular.
We found that @rsksmart/ipfs-cpinner-provider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.