- Fully Qualified Interface Name:
ParagonIE\Gossamer\Interfaces\DbInterface
Constant | Value |
---|---|
GOSSAMER_PROTOCOL_VERSION |
1.0.0 |
TABLE_META |
gossamer_meta |
TABLE_PROVIDERS |
gossamer_providers |
TABLE_PUBLIC_KEYS |
gossamer_provider_publickeys |
TABLE_PACKAGES |
gossamer_packages |
TABLE_PACKAGE_RELEASES |
gossamer_package_releases |
The hash of the latest local entry. This method is used for fetching new records from the cryptographic ledger.
Returns a string
Updates the checkpoint hash to the latest retrieved from the cryptographic ledger.
Arguments:
string
- Checkpoint Hash
Returns a bool
.
Append a new key to the local store.
Note: No identity verification is performed at this step. It MUST have already been checked at a higher level.
Arguments:
string
- Providerstring
- Public Keybool
- Limited key?string
- Purpose for they key.array
- Metadatastring
- Hash
Returns a bool
.
Revoke a public key.
Arguments:
string
- Providerstring
- Public Keyarray
- Metadatastring
- Hash
Returns a bool
.
Appends signature/etc. information about a software update.
Arguments:
string
- Providerstring
- Packagestring
- Public Keystring
- Release (version)?string
- Artifactstring
- Signature (of the release file)array
- Metadatastring
- Hash
Returns a bool
.
Revoke an existing update.
Arguments:
string
- Providerstring
- Packagestring
- Public Keystring
- Release (version)?string
- Artifactarray
- Metadatastring
- Hash
Returns a bool
.
Have we seen this Provider before?
Arguments:
string
- Provider Name
Returns a bool
.
Returns the Verification Keys (Ed25519 public keys) for a given provider.
Arguments:
string
- Provider Name?bool
- Limited keys?- If you pass as TRUE, this method only returns limited keys.
- If you pass as FALSE, this method only returns non-limited keys.
- If you pass as NULL (default), it returns both kinds.
?string
- Purpose?- If you pass as an empty string, this method disregards purpose.
- If you pass as a non-empty string, this method only returns keys that match that purpose.
- If you pass as NULL (default), it only returns keys without a purpose.
Returns an array
of string
s.
Returns the database primary key for this package.
Arguments:
string
- Package Nameint
- Provider ID
Returns an int
.
Returns the database primary key for this provider.
Arguments:
string
- Provider Name
Returns an int
.
Returns the database primary key for this public key.
Arguments:
string
- Public Keyint
- Provier ID
Returns an int
.