Declarative smart contract testing by domain experts

Kevin J. Purnell*, Rolf Schwitter

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference proceeding contributionpeer-review

1 Citation (Scopus)
68 Downloads (Pure)

Abstract

We present a novel approach to testing Answer Set Programs (ASPs) in the context of a system designed to enable a domain expert to write, test and deploy legal smart contracts. Common practice is to use compiled imperative languages to write smart contracts which limits what can be achieved, and provides a clear opportunity for an approach that empowers domain experts. Our system supports the construction of declarative smart contracts by domain experts with the help of a smart user interface that communicates visually and verbally using domain expert level concepts. It captures the ontology and legal logic of a legal document in a model automatically constructed as an ASP program. This paper discusses a complementary approach to testing, achieved by structuring ASP rules and splitting testing into model validation and program verification. Holding ontology information about the application domain allows the approach to be highly automated, so that we achieve automatic discovery of all hypothetical scenarios and exhaustive testing for each rule. Our approach places the domain expert in a tight learning loop where the behaviour of each rule scenario can be understood from the visual and verbal feedback, and rule corrections can be made immediately as required.

Original languageEnglish
Title of host publicationProceedings of the 16th International Rule Challenge and 6th Doctoral Consortium @ RuleML+RR 2022 (RuleML+RR-Companion 2022)
EditorsDörthe Arndt, Ahmet Soylu, Jan Vanthienen, Evgeny Kharlamov, Alexander Steen
Place of PublicationAachen, Germany
PublisherCEUR Workshop Proceedings
Pages1-15
Number of pages15
Publication statusPublished - 2022
Event16th International Rule Challenge and 6th Doctoral Consortium at RuleML+RR, RuleML+RR-Companion 2022 - Virtual, Berlin, Germany
Duration: 26 Sept 202228 Sept 2022

Publication series

NameCEUR Workshop Proceedings
PublisherRWTH Aachen University
Volume3229
ISSN (Print)1613-0073

Conference

Conference16th International Rule Challenge and 6th Doctoral Consortium at RuleML+RR, RuleML+RR-Companion 2022
Country/TerritoryGermany
CityVirtual, Berlin
Period26/09/2228/09/22

Bibliographical note

Copyright the Author(s) 2022. Version archived for private and non-commercial use with the permission of the author/s and according to publisher conditions. For further rights please contact the publisher.

Keywords

  • Answer Set Programming
  • Declarative Language
  • Legal Logic
  • Modelling
  • Ontology
  • Smart Contract
  • Validation
  • Verbalisation
  • Verification
  • Visualisation

Fingerprint

Dive into the research topics of 'Declarative smart contract testing by domain experts'. Together they form a unique fingerprint.

Cite this