snap-revision assertion
The snap-revision assertion is a statement by the store acknowledging the
receipt of a build of a snap and labeling it with a snap revision.
It is one of the assertions that are downloaded along the snap when
running snap download <snap-name>
.
The format is as follows:
type: snap-revision authority-id: <authority account id> snap-sha3-384: <sha3-384 digest as url-safe unpadded base64> developer-id: <developer account id> snap-id: <snap-id> snap-revision: <int> snap-size: <int> timestamp: <UTC datetime> sign-key-sha3-384: <key id> # Encoded key id of signing key <signature> # Encoded signature
The index is the digest of the snap blob, snap-sha3-384
. The store returns the
revision
assigned to the uploaded snap along other data.
An example of this:
type: snap-revision authority-id: canonical snap-sha3-384: F5gwZqB3EBPQ62fhu2CL65TPNdyLbxCVdsxEReYrnp5sNu2z2BXAjdk_BRfUKJgV developer-id: canonical snap-id: RmBXKl6HO6YOC2DE4G2q1JzWImC04EUy snap-revision: 44 snap-size: 5234688 timestamp: 2016-11-03T10:39:25.624109Z sign-key-sha3-384: BWDEoaqyr25nF5SNCvEv2v7QnM9QsfCc0PBMYD_i2NGSQ32EF2d4D0hqUel3m8ul AcLBUgQAAQoABgUCWBsT3QAA/JgQAH+XrRnxFLFzCHVXF5B6yKbj1e5M2YTUXZ3XLHp+eGU93t+h 54UxBwgSKX/Wb1MliOpWG7IuhIw0WsUzM/Ynq5Ixhmf/f8E5p7hP9JJU6+UJaJCnnLtmRLG3x6Y7 YmYIPGEvhn8VuznuTCyqyqRdiiu3U1aKecMyKRdKQvfDdJV4XveTuWlCuHjHplJ/apApyZQDCA/O Qr6grtz/Ud1bR9ThR0KISTuRhE/2qFOuNCVTHU2lFYGrECF0vJYo42tW2R85ZdsOpdVngAMUAJOZ REZKML9cgnJqIDwuZ4DNl+684p71+mNeQtbg2608F8fiK2jFJa8mHY5kxhzFGrIPVXEVmPTRlc0Q dPdViCOeg4jOuCybKQ/DrzE7Vjqhgl6UbKX2JtLbSxwBuB65YijCTVbqZD+u58ek9N9Z6ZKrJz2o HXq6RZqTpkCagV3FIxRRGhBDWQCePY4tRNEj9+3u31Af9daswRlmrFXwWDf46KPKx+fJ9jPECknO s+jQ5ij3fpMfWOzceHHLhIDm9Wj7sypD+63v4KDaXzQ+8dM/acMraNAJHRvCOr7bvFz9j7OEqr7y /6/QMZdkeYO94e1OPB5e+Dya95oCVqJhf05BAIKOn933EjGT3Vnm7HT+EzCvLUbbjMPlJ6ZyNnp/ lE+8N8EQWmdLC+OwJRNHgucjvcaR